proxy

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 8 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthenticatedProxyHandler = ConnectVerbose(ProxyAuthenticate(NewProxyHandler()))

Functions

func CheckProxyAuth

func CheckProxyAuth(user, pass string) bool

func ConnectVerbose

func ConnectVerbose(next http.Handler) http.Handler

ConnectVerbose is a misnomer It also logs plain HTTP proxy requests, which do not have CONNECT method

func IsProxy

func IsProxy(r *http.Request) bool

h1/h2/h3 connect requests or forward requests

func IsProxyAuthenticated added in v0.0.1

func IsProxyAuthenticated(r *http.Request) bool

func NewProxyHandler

func NewProxyHandler() http.Handler

func ProxyAuthenticate

func ProxyAuthenticate(next http.Handler) http.Handler

func ProxyBasicAuth

func ProxyBasicAuth(r *http.Request) (username, password string, ok bool)

func ProxyDispatcher

func ProxyDispatcher(r *http.Request) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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