Documentation ¶
Index ¶
- Variables
- func Accepted(w http.ResponseWriter, msg ...interface{})
- func BadGateway(w http.ResponseWriter, msg ...interface{})
- func BadRequest(w http.ResponseWriter, msg ...interface{})
- func Conflict(w http.ResponseWriter, msg ...interface{})
- func Continue(w http.ResponseWriter, msg ...interface{})
- func Created(w http.ResponseWriter, msg ...interface{})
- func Error(w http.ResponseWriter, code int)
- func ExpectationFailed(w http.ResponseWriter, msg ...interface{})
- func Forbidden(w http.ResponseWriter, msg ...interface{})
- func Found(w http.ResponseWriter, msg ...interface{})
- func GatewayTimeout(w http.ResponseWriter, msg ...interface{})
- func Gone(w http.ResponseWriter, msg ...interface{})
- func HTTPVersionNotSupported(w http.ResponseWriter, msg ...interface{})
- func InternalServerError(w http.ResponseWriter, msg ...interface{})
- func JSON(w http.ResponseWriter, val interface{}, code ...int)
- func LengthRequired(w http.ResponseWriter, msg ...interface{})
- func MethodNotAllowed(w http.ResponseWriter, msg ...interface{})
- func MovedPermanently(w http.ResponseWriter, msg ...interface{})
- func MultipleChoices(w http.ResponseWriter, msg ...interface{})
- func NoContent(w http.ResponseWriter, msg ...interface{})
- func NonAuthoritativeInfo(w http.ResponseWriter, msg ...interface{})
- func NotAcceptable(w http.ResponseWriter, msg ...interface{})
- func NotFound(w http.ResponseWriter, msg ...interface{})
- func NotImplemented(w http.ResponseWriter, msg ...interface{})
- func NotModified(w http.ResponseWriter, msg ...interface{})
- func OK(w http.ResponseWriter, msg ...interface{})
- func PartialContent(w http.ResponseWriter, msg ...interface{})
- func PaymentRequired(w http.ResponseWriter, msg ...interface{})
- func PreconditionFailed(w http.ResponseWriter, msg ...interface{})
- func ProxyAuthRequired(w http.ResponseWriter, msg ...interface{})
- func RequestEntityTooLarge(w http.ResponseWriter, msg ...interface{})
- func RequestTimeout(w http.ResponseWriter, msg ...interface{})
- func RequestURITooLong(w http.ResponseWriter, msg ...interface{})
- func RequestedRangeNotSatisfiable(w http.ResponseWriter, msg ...interface{})
- func ResetContent(w http.ResponseWriter, msg ...interface{})
- func SeeOther(w http.ResponseWriter, msg ...interface{})
- func ServiceUnavailable(w http.ResponseWriter, msg ...interface{})
- func SwitchingProtocols(w http.ResponseWriter, msg ...interface{})
- func Teapot(w http.ResponseWriter, msg ...interface{})
- func TemporaryRedirect(w http.ResponseWriter, msg ...interface{})
- func Unauthorized(w http.ResponseWriter, msg ...interface{})
- func UnsupportedMediaType(w http.ResponseWriter, msg ...interface{})
- func UseProxy(w http.ResponseWriter, msg ...interface{})
- func XML(w http.ResponseWriter, val interface{}, code ...int)
Constants ¶
This section is empty.
Variables ¶
var Pretty = true
Pretty response formatting.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, code int)
Error responds with a generic status code response.
func ExpectationFailed ¶
func ExpectationFailed(w http.ResponseWriter, msg ...interface{})
ExpectationFailed response.
func GatewayTimeout ¶
func GatewayTimeout(w http.ResponseWriter, msg ...interface{})
GatewayTimeout response.
func HTTPVersionNotSupported ¶
func HTTPVersionNotSupported(w http.ResponseWriter, msg ...interface{})
HTTPVersionNotSupported response.
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter, msg ...interface{})
InternalServerError response.
func JSON ¶
func JSON(w http.ResponseWriter, val interface{}, code ...int)
JSON response with optional status code.
func LengthRequired ¶
func LengthRequired(w http.ResponseWriter, msg ...interface{})
LengthRequired response.
func MethodNotAllowed ¶
func MethodNotAllowed(w http.ResponseWriter, msg ...interface{})
MethodNotAllowed response.
func MovedPermanently ¶
func MovedPermanently(w http.ResponseWriter, msg ...interface{})
MovedPermanently response.
func MultipleChoices ¶
func MultipleChoices(w http.ResponseWriter, msg ...interface{})
MultipleChoices response.
func NonAuthoritativeInfo ¶
func NonAuthoritativeInfo(w http.ResponseWriter, msg ...interface{})
NonAuthoritativeInfo response.
func NotAcceptable ¶
func NotAcceptable(w http.ResponseWriter, msg ...interface{})
NotAcceptable response.
func NotImplemented ¶
func NotImplemented(w http.ResponseWriter, msg ...interface{})
NotImplemented response.
func NotModified ¶
func NotModified(w http.ResponseWriter, msg ...interface{})
NotModified response.
func PartialContent ¶
func PartialContent(w http.ResponseWriter, msg ...interface{})
PartialContent response.
func PaymentRequired ¶
func PaymentRequired(w http.ResponseWriter, msg ...interface{})
PaymentRequired response.
func PreconditionFailed ¶
func PreconditionFailed(w http.ResponseWriter, msg ...interface{})
PreconditionFailed response.
func ProxyAuthRequired ¶
func ProxyAuthRequired(w http.ResponseWriter, msg ...interface{})
ProxyAuthRequired response.
func RequestEntityTooLarge ¶
func RequestEntityTooLarge(w http.ResponseWriter, msg ...interface{})
RequestEntityTooLarge response.
func RequestTimeout ¶
func RequestTimeout(w http.ResponseWriter, msg ...interface{})
RequestTimeout response.
func RequestURITooLong ¶
func RequestURITooLong(w http.ResponseWriter, msg ...interface{})
RequestURITooLong response.
func RequestedRangeNotSatisfiable ¶
func RequestedRangeNotSatisfiable(w http.ResponseWriter, msg ...interface{})
RequestedRangeNotSatisfiable response.
func ResetContent ¶
func ResetContent(w http.ResponseWriter, msg ...interface{})
ResetContent response.
func ServiceUnavailable ¶
func ServiceUnavailable(w http.ResponseWriter, msg ...interface{})
ServiceUnavailable response.
func SwitchingProtocols ¶
func SwitchingProtocols(w http.ResponseWriter, msg ...interface{})
SwitchingProtocols response.
func TemporaryRedirect ¶
func TemporaryRedirect(w http.ResponseWriter, msg ...interface{})
TemporaryRedirect response.
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter, msg ...interface{})
Unauthorized response.
func UnsupportedMediaType ¶
func UnsupportedMediaType(w http.ResponseWriter, msg ...interface{})
UnsupportedMediaType response.
func XML ¶
func XML(w http.ResponseWriter, val interface{}, code ...int)
XML response with optional status code.
Types ¶
This section is empty.