// ProxyCredentials returns the username and password from r's
// Proxy-Authorization header.
ProxyCredentials returns the username and password from r's
Proxy-Authorization header.
// ProxyCredentials returns the username and password from r ' s // Proxy - Authorization header .
func ProxyCredentials(r *http.Request) (user, pass string, ok bool) {
	auth := r.Header.Get("Proxy-Authorization")
	if auth == "" || !strings.HasPrefix(auth, "Basic ") {
		return "", "", false
	}
	return decodeBase64Credentials(strings.TrimPrefix(auth, "Basic "))
}
func ProxyCredentials ( r * http . Request ) ( user , pass string , ok bool ) { auth := r . Header . Get ( " " ) if auth == " " || ! strings . HasPrefix ( auth , " " ) { return " " , " " , false } return decodeBase64Credentials ( strings . TrimPrefix ( auth , " " ) ) }
ProxyCredentials returns the username and password from r's
Proxy-Authorization header.
ProxyCredentials returns the username and password from r ' s Proxy - Authorization header .