value

package
v0.7.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodGet     = Method(http.MethodGet)
	MethodHead    = Method(http.MethodHead)
	MethodPost    = Method(http.MethodPost)
	MethodPut     = Method(http.MethodPut)
	MethodPatch   = Method(http.MethodPatch)
	MethodDelete  = Method(http.MethodDelete)
	MethodConnect = Method(http.MethodConnect)
	MethodOptions = Method(http.MethodOptions)
	MethodTrace   = Method(http.MethodTrace)
)

Variables

View Source
var (
	ErrIllegalMethod = errors.New("illegal method")

	AllMethods = Methods{
		MethodGet,
		MethodHead,
		MethodPost,
		MethodPut,
		MethodPatch,
		MethodDelete,
		MethodConnect,
		MethodOptions,
		MethodTrace,
	}
)

Functions

This section is empty.

Types

type ForcibleHeaderNames

type ForcibleHeaderNames struct {
	value.Forcible[HeaderNames, HeaderNames, *HeaderNames]
}

func NewForcibleHeaders

func NewForcibleHeaders(init HeaderNames, forced bool) ForcibleHeaderNames

func (ForcibleHeaderNames) Select

type ForcibleHostPatterns

type ForcibleHostPatterns struct {
	value.Forcible[HostPatterns, HostPatterns, *HostPatterns]
}

func NewForcibleHostPatterns

func NewForcibleHostPatterns(init HostPatterns, forced bool) ForcibleHostPatterns

func (ForcibleHostPatterns) Select

type ForcibleMethods

type ForcibleMethods struct {
	value.Forcible[Methods, Methods, *Methods]
}

func NewForcibleMethods

func NewForcibleMethods(init Methods, forced bool) ForcibleMethods

func (ForcibleMethods) Select

func (this ForcibleMethods) Select(target ForcibleMethods) ForcibleMethods

type HeaderName

type HeaderName string

func ParseHeaderName

func ParseHeaderName(plain string) (result HeaderName, err error)

func (*HeaderName) Set

func (this *HeaderName) Set(plain string) error

func (HeaderName) String

func (this HeaderName) String() string

type HeaderNames

type HeaderNames []HeaderName

func ParseHeaderNames

func ParseHeaderNames(plain string) (result HeaderNames, err error)

func (HeaderNames) Get

func (this HeaderNames) Get() HeaderNames

func (HeaderNames) GetOr

func (this HeaderNames) GetOr(def HeaderNames) HeaderNames

func (HeaderNames) IsPresent

func (this HeaderNames) IsPresent() bool

func (HeaderNames) Matches

func (this HeaderNames) Matches(test HeaderName) bool

func (*HeaderNames) Set

func (this *HeaderNames) Set(plain string) error

func (HeaderNames) String

func (this HeaderNames) String() string

type HostPattern

type HostPattern []string

func ParseHostPattern

func ParseHostPattern(plain string) (result HostPattern, err error)

func (HostPattern) Matches

func (this HostPattern) Matches(test string) bool

func (*HostPattern) Set

func (this *HostPattern) Set(plain string) error

func (HostPattern) String

func (this HostPattern) String() string

type HostPatterns

type HostPatterns []HostPattern

func ParseHostPatterns

func ParseHostPatterns(plain string) (result HostPatterns, err error)

func (HostPatterns) Get

func (this HostPatterns) Get() HostPatterns

func (HostPatterns) GetOr

func (this HostPatterns) GetOr(def HostPatterns) HostPatterns

func (HostPatterns) IsPresent

func (this HostPatterns) IsPresent() bool

func (HostPatterns) Matches

func (this HostPatterns) Matches(test string) bool

func (*HostPatterns) Set

func (this *HostPatterns) Set(plain string) error

func (HostPatterns) String

func (this HostPatterns) String() string

type Method

type Method string

func ParseMethod

func ParseMethod(plain string) (result Method, err error)

func (*Method) Set

func (this *Method) Set(plain string) error

func (Method) String

func (this Method) String() string

type Methods

type Methods []Method

func ParseMethods

func ParseMethods(plain string) (result Methods, err error)

func (Methods) Get

func (this Methods) Get() Methods

func (Methods) GetOr

func (this Methods) GetOr(def Methods) Methods

func (Methods) IsPresent

func (this Methods) IsPresent() bool

func (Methods) Matches

func (this Methods) Matches(test Method) bool

func (*Methods) Set

func (this *Methods) Set(plain string) error

func (Methods) String

func (this Methods) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL