Documentation
¶
Index ¶
Constants ¶
View Source
const ( XFrameOptionsSameOrigin = "sameorigin" XFrameOptionsDeny = "deny" )
constants for the X-Frame-Options header
View Source
const RequestHeader = "X-Http-Request-Id"
RequestHeader is the header that marks the http request id set by the server.
Variables ¶
This section is empty.
Functions ¶
func FrameOptions ¶
FrameOptions is middleware that sets the X-Frame-Options header. Policy should be one of deny|sameorigin|allow-from https://example.com/
func NoCache ¶
NoCache is a simple piece of middleware that sets a number of HTTP headers to prevent a router (or subrouter) from being cached by an upstream proxy and/or client.
As per http://wiki.nginx.org/HttpProxyModule - NoCache sets:
Expires: Thu, 01 Jan 1970 00:00:00 UTC Cache-Control: no-cache, private, max-age=0 X-Accel-Expires: 0 Pragma: no-cache (for HTTP/1.0 proxies/clients)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.