Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContextKeyMatchedRule key ContextKeySession )
Variables ¶
This section is empty.
Functions ¶
func ConfigureBackendURL ¶ added in v0.39.0
func EnrichRequestedURL ¶
func EnrichRequestedURL(r *httputil.ProxyRequest)
EnrichRequestedURL sets Scheme and Host values in a URL passed down by a http server. Per default, the URL does not contain host nor scheme values.
func NewSimpleResponseWriter ¶
func NewSimpleResponseWriter() *simpleResponseWriter
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func NewProxy ¶
func NewProxy(r proxyRegistry, c configuration.Provider) *Proxy
func (*Proxy) Rewrite ¶ added in v0.40.3
func (d *Proxy) Rewrite(r *httputil.ProxyRequest)
type RequestHandler ¶
type RequestHandler interface { HandleError(w http.ResponseWriter, r *http.Request, rl *rule.Rule, handleErr error) HandleRequest(r *http.Request, rl *rule.Rule) (session *authn.AuthenticationSession, err error) InitializeAuthnSession(r *http.Request, rl *rule.Rule) *authn.AuthenticationSession }
func NewRequestHandler ¶
func NewRequestHandler(r requestHandlerRegistry, c configuration.Provider) RequestHandler
Click to show internal directories.
Click to hide internal directories.