rewriteproxy

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(address string, cfg *gatewayconfig.PassthroughComponent, protected bool, rewritePathFunc RewritePathFunc) (http.Handler, error)

NewHandler to create a reverse proxy handler and returns it. The reverse proxy will rewrite url path .

Types

type RewritePathFunc

type RewritePathFunc func(path string) (newPath string)

RewritePathFunc rewrites url path.

Jump to

Keyboard shortcuts

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