Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentType ¶
type ContentType string
const ( None ContentType = "none" Text ContentType = "text" Form ContentType = "form" Json ContentType = "json" Xml ContentType = "xml" Html ContentType = "html" )
func ContentTypeFromHeader ¶
func ContentTypeFromHeader(contentType string) (ContentType, bool)
func RequestContentTypes ¶
func RequestContentTypes() []ContentType
func (ContentType) String ¶
func (s ContentType) String() string
func (ContentType) ToHeader ¶
func (s ContentType) ToHeader() string
type HttpMethod ¶
type HttpMethod string
const ( GET HttpMethod = "GET" POST HttpMethod = "POST" PUT HttpMethod = "PUT" DELETE HttpMethod = "DELETE" PATCH HttpMethod = "PATCH" HEAD HttpMethod = "HEAD" OPTIONS HttpMethod = "OPTIONS" TRACE HttpMethod = "TRACE" CONNECT HttpMethod = "CONNECT" )
func HttpMethodFromString ¶
func HttpMethodFromString(value string) (*HttpMethod, error)
func HttpMethods ¶
func HttpMethods() []HttpMethod
func (HttpMethod) String ¶
func (m HttpMethod) String() string
type NodeReference ¶
Click to show internal directories.
Click to hide internal directories.