Documentation ¶
Index ¶
- Constants
- func ConfigureBackendURL(r *http.Request, rl *rule.Rule) error
- func EnrichRequestedURL(r *http.Request)
- func NewSimpleResponseWriter() *simpleResponseWriter
- type Proxy
- type RequestHandler
- func (d *RequestHandler) HandleError(w http.ResponseWriter, r *http.Request, rl *rule.Rule, handleErr error)
- func (d *RequestHandler) HandleRequest(r *http.Request, rl *rule.Rule) (session *authn.AuthenticationSession, err error)
- func (d *RequestHandler) InitializeAuthnSession(r *http.Request, rl *rule.Rule) *authn.AuthenticationSession
Constants ¶
View Source
const ( ContextKeyMatchedRule key ContextKeySession )
Variables ¶
This section is empty.
Functions ¶
func ConfigureBackendURL ¶ added in v0.39.0
func EnrichRequestedURL ¶
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 RequestHandler ¶
type RequestHandler struct {
// contains filtered or unexported fields
}
func NewRequestHandler ¶
func NewRequestHandler(r requestHandlerRegistry, c configuration.Provider) *RequestHandler
func (*RequestHandler) HandleError ¶ added in v0.39.0
func (d *RequestHandler) HandleError(w http.ResponseWriter, r *http.Request, rl *rule.Rule, handleErr error)
func (*RequestHandler) HandleRequest ¶
func (d *RequestHandler) HandleRequest(r *http.Request, rl *rule.Rule) (session *authn.AuthenticationSession, err error)
func (*RequestHandler) InitializeAuthnSession ¶ added in v0.39.0
func (d *RequestHandler) InitializeAuthnSession(r *http.Request, rl *rule.Rule) *authn.AuthenticationSession
InitializeAuthnSession creates an authentication session and initializes it with a Match context if possible
Click to show internal directories.
Click to hide internal directories.