oathkeeper: github.com/ory/oathkeeper/proxy Index | Files

package proxy

import "github.com/ory/oathkeeper/proxy"

Index

Package Files

proxy.go request_handler.go response_writer.go

Constants

const (
    ContextKeyMatchedRule key
    ContextKeySession
)

func ConfigureBackendURL Uses

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

func EnrichRequestedURL Uses

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 Uses

func NewSimpleResponseWriter() *simpleResponseWriter

type Proxy Uses

type Proxy struct {
    // contains filtered or unexported fields
}

func NewProxy Uses

func NewProxy(r proxyRegistry) *Proxy

func (*Proxy) Director Uses

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

func (*Proxy) RoundTrip Uses

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

type RequestHandler Uses

type RequestHandler struct {
    // contains filtered or unexported fields
}

func NewRequestHandler Uses

func NewRequestHandler(r requestHandlerRegistry, c configuration.Provider) *RequestHandler

func (*RequestHandler) HandleError Uses

func (d *RequestHandler) HandleError(w http.ResponseWriter, r *http.Request, rl *rule.Rule, handleErr error)

func (*RequestHandler) HandleRequest Uses

func (d *RequestHandler) HandleRequest(r *http.Request, rl *rule.Rule) (session *authn.AuthenticationSession, err error)

Package proxy imports 18 packages (graph) and is imported by 2 packages. Updated 2020-02-07. Refresh now. Tools for package owners.