# Functions
DecodeURLSchema decodes request for mdata in to the provided dst url struct.
DefaultTLSConfig returns a new tls.Config.
DescribeError returns a wrapped version for errors which contain additional fields.
ErrorAsFields returns a mapping of all fields of the provided error.
HTTPTransportWithTLSClientConfig creates a new http.Transport with sane default settings using the provided tls.Config.
InsecureSkipVerifyTLSConfig returns a new tls.Config which does skip TLS verification.
IsRequestFromTrustedSource checks if the provided requests remote address is one either one of the provided ips or in one of the provided networks.
OriginFromRequestHeaders tries to find information about the origin from the provided http.Header.
WriteErrorPage create a formatted error page response containing the provided information and writes it to the provided http.ResponseWriter.
WriteJSON marshals the provided data as JSON and writes it to the provided http.ResponseWriter using the provided HTTP status code and content-type.
WriteRedirect crates a URL out of the provided uri and params and writes a a HTTP response with the provided HTTP status code to the provided http.ResponseWriter incliding HTTP caching headers to prevent caching.
# Variables
DefaultHTTPClient is a http.Client with a timeout set.
DefaultHTTPUserAgent is the User-Agent Header which should be used when making HTTP requests.
InsecureHTTPClient is a http.Client with a timeout set and with TLS verification disabled.
# Interfaces
ErrorWithDescription is an interface binding the standard error inteface with a description.