Documentation ¶
Index ¶
- func Basic(realm string, f func(user, passwd string) bool) goproxy.ReqHandler
- func BasicConnect(realm string, f func(user, passwd string) bool) goproxy.HttpsHandler
- func BasicConnectWithAddr(realm string, f AuthWithAddrFunc) goproxy.HttpsHandler
- func BasicUnauthorized(req *http.Request, realm string) *http.Response
- func BasicWithAddr(realm string, f AuthWithAddrFunc) goproxy.ReqHandler
- func ProxyBasic(proxy *goproxy.ProxyHttpServer, realm string, f func(user, passwd string) bool)
- func ProxyBasicWithAddr(proxy *goproxy.ProxyHttpServer, realm string, f AuthWithAddrFunc)
- type AuthWithAddrFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Basic ¶
func Basic(realm string, f func(user, passwd string) bool) goproxy.ReqHandler
Basic returns a basic HTTP authentication handler for requests
You probably want to use auth.ProxyBasic(proxy) to enable authentication for all proxy activities
func BasicConnect ¶
func BasicConnect(realm string, f func(user, passwd string) bool) goproxy.HttpsHandler
BasicConnect returns a basic HTTP authentication handler for CONNECT requests
You probably want to use auth.ProxyBasic(proxy) to enable authentication for all proxy activities
func BasicConnectWithAddr ¶
func BasicConnectWithAddr(realm string, f AuthWithAddrFunc) goproxy.HttpsHandler
BasicConnectWithAddr returns a basic HTTP authentication handler for CONNECT requests
You probably want to use auth.ProxyBasicWithAddr(proxy) to enable authentication for all proxy activities
func BasicWithAddr ¶
func BasicWithAddr(realm string, f AuthWithAddrFunc) goproxy.ReqHandler
BasicWithAddr returns a basic HTTP authentication handler for requests
You probably want to use auth.ProxyBasicWithAddrWithAddr(proxy) to enable authentication for all proxy activities
func ProxyBasic ¶
func ProxyBasic(proxy *goproxy.ProxyHttpServer, realm string, f func(user, passwd string) bool)
ProxyBasic will force HTTP authentication before any request to the proxy is processed
func ProxyBasicWithAddr ¶
func ProxyBasicWithAddr(proxy *goproxy.ProxyHttpServer, realm string, f AuthWithAddrFunc)
ProxyBasic will force HTTP authentication before any request to the proxy is processed