Documentation ¶
Index ¶
- type Method
- func (m Method) EmptyBody() bool
- func (m Method) Is(meth string) bool
- func (m Method) IsIdempotent() bool
- func (m Method) IsKnown() bool
- func (m Method) IsREST() bool
- func (m Method) IsResponseCacheable() bool
- func (m Method) IsSafe() bool
- func (m Method) MayHaveEtag() bool
- func (m Method) MayHaveIfMatch() bool
- func (m Method) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method string
func (Method) IsIdempotent ¶
a method is idempotent, if (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request
func (Method) IsResponseCacheable ¶
func (Method) IsSafe ¶
a method is considered safe, if it has no requested sideeffect by the user agent
func (Method) MayHaveEtag ¶
MayHaveEtag checks if method is allowed to have an Etag header
func (Method) MayHaveIfMatch ¶
MayHaveIfMatch checks if method is allowed to have an IfMatch header
Click to show internal directories.
Click to hide internal directories.