proxy

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHTTPClient

func WithHTTPClient(http *http.Client) proxyMiddlewareOption

func WithURLReplacerFactory

func WithURLReplacerFactory(replacerFactory URLReplacerFactory) proxyMiddlewareOption

Types

type ProxyMiddleware

type ProxyMiddleware struct {
	// contains filtered or unexported fields
}

nolint: revive

func NewProxyMiddleware

func NewProxyMiddleware(options ...proxyMiddlewareOption) *ProxyMiddleware

func (*ProxyMiddleware) Wrap

type URLReplacerFactory

type URLReplacerFactory interface {
	Make(requestURL *url.URL) (*urlreplacer.Replacer, error)
}

Jump to

Keyboard shortcuts

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