# Packages
No description provided by the author
# Functions
ConvertResponse converts http error to internal error type based on HTTP response code and HTTP body contents.
MakeHandler returns a new httprouter.Handle func from a handler func.
MakeStdHandler returns a new http.Handle func from http.HandlerFunc.
ParseBool will parse boolean variable from url query returns value, ok, error.
ReadJSON reads HTTP json request and unmarshals it into passed interface{} obj.
Rewrite creates a rewrite pair, panics if in epxression is not a valid regular expressoin.
RewritePaths creates a middleware that rewrites paths in incoming request.
SafeRedirect performs a relative redirect to the URI part of the provided redirect URL.
SetIndexHTMLHeaders sets security header flags for main index.html page.
SetNoCacheHeaders tells proxies and browsers do not cache the content.
SetNoSniff sets X-Content-Type-Options flag.
SetSameOriginIFrame sets X-Frame-Options flag.
SetStaticFileHeaders sets security header flags for static non-html resources.
SetWebConfigHeaders sets headers for webConfig.js.
WithCSRFProtection ensures that request to unauthenticated API is checked against CSRF attacks.
# Structs
RewritePair is a rewrite expression.
# Type aliases
HandlerFunc specifies HTTP handler function that returns error.
StdHandlerFunc specifies HTTP handler function that returns error.