proxy

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 10 Imported by: 0

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

func (*Handler) ServeHTTP added in v0.0.6

func (handler *Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL