proxy

package
v0.0.0-...-5870b03 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuth = errors.New("proxy auth faild")

Functions

func Enable

func Enable()

func IsProxy

func IsProxy(r *http.Request) bool

func ProxyServe

func ProxyServe(w http.ResponseWriter, r *http.Request)

func SetAuthFunc

func SetAuthFunc(f func(*hfw.HTTPContext, *http.Request, string, string) bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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