Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderAccept = "Accept" HeaderContentType = "Content-Type" ContentTypeHtml = "text/html" ContentTypeJson = "application/json" ContentTypeBinary = "application/octet-stream" )
Variables ¶
This section is empty.
Functions ¶
func IsJSONRequest ¶
IsJSONRequest returns true if request is a JSON request
func ValidOrigin ¶
ValidOrigin returns true if origin is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.