method

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 0 Imported by: 2

README

method

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method string
const (
	POST    Method = "POST"
	GET     Method = "GET"
	PUT     Method = "PUT"
	DELETE  Method = "DELETE"
	PATCH   Method = "PATCH"
	OPTIONS Method = "OPTIONS"
	HEAD    Method = "HEAD"
	TRACE   Method = "TRACE"
)

func (Method) EmptyBody

func (m Method) EmptyBody() bool

the the method return an empty message body

func (Method) Is

func (m Method) Is(meth string) bool

Is checks if the given string is the method

func (Method) IsIdempotent

func (m Method) IsIdempotent() bool

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) IsKnown

func (m Method) IsKnown() bool

IsKnown checks if method is a known http method

func (Method) IsREST

func (m Method) IsREST() bool

IsREST checks if method one of the REST methods

func (Method) IsResponseCacheable

func (m Method) IsResponseCacheable() bool

func (Method) IsSafe

func (m Method) IsSafe() bool

a method is considered safe, if it has no requested sideeffect by the user agent

func (Method) MayHaveEtag

func (m Method) MayHaveEtag() bool

MayHaveEtag checks if method is allowed to have an Etag header

func (Method) MayHaveIfMatch

func (m Method) MayHaveIfMatch() bool

MayHaveIfMatch checks if method is allowed to have an IfMatch header

func (Method) String

func (m Method) String() string

Jump to

Keyboard shortcuts

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