proxy

package
v0.39.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ContextKeyMatchedRule key
	ContextKeySession
)

Variables

This section is empty.

Functions

func ConfigureBackendURL added in v0.39.0

func ConfigureBackendURL(r *http.Request, rl *rule.Rule) error

func CopyHeaders added in v0.39.0

func CopyHeaders(headers http.Header, r *http.Request)

func EnrichRequestedURL

func EnrichRequestedURL(r *http.Request)

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) *Proxy

func (*Proxy) Director

func (d *Proxy) Director(r *http.Request)

func (*Proxy) RoundTrip

func (d *Proxy) RoundTrip(r *http.Request) (*http.Response, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL