handler

package
v0.0.0-...-84faedb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptChallenge

func AcceptChallenge(c *config.Config) http.HandlerFunc

func CertificateInject

func CertificateInject(info *tls.ClientHelloInfo) (*tls.Certificate, error)

func Http

func Http(c *config.Config)

func HttpMiddleware

func HttpMiddleware(next http.HandlerFunc) http.HandlerFunc

func Https

func Https() *http.Server

func ReverseProxyHandler

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

ReverseProxyHandler 根据证书配置的反向代理

func ReverseProxyOrRedirect

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

ReverseProxyOrRedirect 启动http时, 判断是否强转https

Types

This section is empty.

Jump to

Keyboard shortcuts

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