Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SignatureHeader is the name of the request header containing the GAP Signature // Part of hmacauth SignatureHeader = "GAP-Signature" )
Variables ¶
View Source
var SignatureHeaders = []string{
"Content-Length",
"Content-Md5",
"Content-Type",
"Date",
"Authorization",
"X-Forwarded-User",
"X-Forwarded-Email",
"X-Forwarded-Preferred-User",
"X-Forwarded-Access-Token",
"Cookie",
"Gap-Auth",
}
SignatureHeaders contains the headers to be signed by the hmac algorithm Part of hmacauth
Functions ¶
func NewProxy ¶
func NewProxy(upstreams options.UpstreamConfig, sigData *options.SignatureData, writer pagewriter.Writer) (http.Handler, error)
NewProxy creates a new multiUpstreamProxy that can serve requests directed to multiple upstreams.
Types ¶
type ProxyErrorHandler ¶
type ProxyErrorHandler func(http.ResponseWriter, *http.Request, error)
ProxyErrorHandler is a function that will be used to render error pages when HTTP proxies fail to connect to upstream servers.
Click to show internal directories.
Click to hide internal directories.