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 BasicUnauthorized(req *http.Request, realm string) *http.Response
- func ProxyBasic(proxy *goproxy.ProxyHttpServer, realm string, f func(user, passwd string) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Basic ¶
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 ¶
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 ProxyBasic ¶
ProxyBasic will force HTTP authentication before any request to the proxy is processed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.