Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostConfig ¶
type HostConfig struct {
// CookieDomain the host under which the cookie should be set
// e.g. example.com
// If left empty, will ask the browser to use the browser address bar's host (default HTTP Cookie behavior)
CookieDomain string
// UpstreamHost the target upstream host the proxy will pass the connection to
// e.g. fluffy-bear-afiu23iaysd.oryapis.com
UpstreamHost string
// PathPrefix is a prefix that is prepended on the original host,
// but removed on the upstream.
PathPrefix string
// UpstreamProtocol is the protocol used by the upstream.
UpstreamProtocol string
// contains filtered or unexported fields
}
type Options ¶
type Options func(*options)
func WithOnError ¶
func WithReqMiddleware ¶
func WithReqMiddleware(middlewares ...ReqMiddleware) Options
func WithRespMiddleware ¶
func WithRespMiddleware(middlewares ...RespMiddleware) Options
func WithTransport ¶
func WithTransport(t http.RoundTripper) Options
Click to show internal directories.
Click to hide internal directories.