proxy

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxy

func NewProxy(
	targetURL *url.URL,
	sourcePath string,
	log logging.Logger) *httputil.ReverseProxy

NewProxy creates a proxy that will accept requests on the path `sourcePath` and proxy them to the server and path contained in `targetURL`. The `sourcePath` is removed during proxying.

Types

This section is empty.

Jump to

Keyboard shortcuts

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