Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareOption ¶ added in v0.0.4
type MiddlewareOption = func(*ProxyMiddleware)
func WithHTTPClient ¶
func WithHTTPClient(http *http.Client) MiddlewareOption
func WithURLReplacerFactory ¶
func WithURLReplacerFactory(replacerFactory URLReplacerFactory) MiddlewareOption
type ProxyMiddleware ¶
type ProxyMiddleware struct {
// contains filtered or unexported fields
}
nolint: revive
func NewProxyMiddleware ¶
func NewProxyMiddleware(options ...MiddlewareOption) *ProxyMiddleware
func (*ProxyMiddleware) Wrap ¶
func (pm *ProxyMiddleware) Wrap(_ infrastructure.HandlerFunc) infrastructure.HandlerFunc
type URLReplacerFactory ¶
type URLReplacerFactory interface {
Make(requestURL *url.URL) (*urlreplacer.Replacer, *urlreplacer.Replacer, error)
}
Click to show internal directories.
Click to hide internal directories.