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 ¶
func (this ForcibleHeaderNames) Select(target ForcibleHeaderNames) ForcibleHeaderNames
type ForcibleHostPatterns ¶
type ForcibleHostPatterns struct { value.Forcible[HostPatterns, HostPatterns, *HostPatterns] }
func NewForcibleHostPatterns ¶
func NewForcibleHostPatterns(init HostPatterns, forced bool) ForcibleHostPatterns
func (ForcibleHostPatterns) Select ¶
func (this ForcibleHostPatterns) Select(target ForcibleHostPatterns) ForcibleHostPatterns
type ForcibleMethods ¶
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
Click to show internal directories.
Click to hide internal directories.