Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewProxyMiddleware ¶
func NewProxyMiddleware(options ...MiddlewareOption) *Middleware
func (*Middleware) ServeHTTP ¶
func (m *Middleware) ServeHTTP(response http.ResponseWriter, request *http.Request)
type MiddlewareOption ¶
type MiddlewareOption = func(*Middleware)
func WithHTTPClient ¶
func WithHTTPClient(http contracts.HTTPClient) MiddlewareOption
func WithLogger ¶
func WithLogger(logger contracts.Logger) MiddlewareOption
func WithURLReplacerFactory ¶
func WithURLReplacerFactory(replacerFactory URLReplacerFactory) MiddlewareOption
type URLReplacerFactory ¶ added in v0.0.9
type URLReplacerFactory interface {
Make(requestURL *url.URL) (*urlreplacer.Replacer, *urlreplacer.Replacer, error)
}
Click to show internal directories.
Click to hide internal directories.