Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v0.0.6
type Handler struct {
// contains filtered or unexported fields
}
func NewProxyHandler ¶ added in v0.0.6
func NewProxyHandler(options ...HandlerOption) *Handler
type HandlerOption ¶ added in v0.0.6
type HandlerOption = func(*Handler)
func WithHTTPClient ¶
func WithHTTPClient(http *http.Client) HandlerOption
func WithLogger ¶ added in v0.0.7
func WithLogger(logger contracts.Logger) HandlerOption
func WithURLReplacerFactory ¶
func WithURLReplacerFactory(replacerFactory URLReplacerFactory) HandlerOption
type URLReplacerFactory ¶
type URLReplacerFactory interface {
Make(requestURL *url.URL) (*urlreplacer.Replacer, *urlreplacer.Replacer, error)
}
Click to show internal directories.
Click to hide internal directories.