proxy

package
v0.0.0-...-2c87074 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package proxy provides proxy server utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(port int, director func(req *http.Request)) (err error)

Listen initiates a reverse proxy on a given port. It handles incoming client requests and sends them to their intended target server, proxying the response back to the client.

director has the ability to modify requests before they are sent. It can also be used to simply perform an action based on the requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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