# Packages
Package jsendx implements a custom JSend model to wrap all HTTP responses in a
consistent JSON object with default fields.
# Functions
AddBasicAuth decorates the provided http.Request with Basic Authorization.
GetRequestTime returns the request time from the http request.
GetRequestTimeFromContext returns the request time from the context.
HeaderOrDefault returns the value of an HTTP header or a default value.
Link generates a public Link using the service url.
NewResponseWriterWrapper wraps an http.ResponseWriter with an enhanced proxy.
PathParam returns the value from the named path segment.
QueryIntOrDefault returns the integer value of the specified URL query parameter or a default value.
QueryStringOrDefault returns the string value of the specified URL query parameter or a default value.
QueryUintOrDefault returns the unsigned integer value of the specified URL query parameter or a default value.
SendJSON sends a JSON object to the response.
SendStatus sends write a HTTP status code to the response.
SendText sends text to the response.
SendXML sends an XML object to the response.
WithRequestTime returns a new context with the added request time.
# Constants
MimeApplicationJSON contains the mime type string for JSON content.
MimeApplicationXML contains the mime type string for XML content.
MimeTextPlain contains the mime type string for text content.
ReqTimeCtxKey is the Context key to retrieve the request time.
JSend status codes.
JSend status codes.
JSend status codes.
XMLHeader is a default XML Declaration header suitable for use with the SendXML function.
# Interfaces
ResponseWriterWrapper is the interface defining the extendend functions of the proxy.
# Type aliases
Status translates the HTTP status code to a JSend status string.