Documentation ¶
Index ¶
- func DecodeBasicProxyAuthorization(credential string) (string, string, error)
- func HandleConn(c net.Conn, in chan<- C.ConnContext, cache *cache.Cache)
- func ParseBasicProxyAuthorization(request *http.Request) string
- func ReadRequest(b *bufio.Reader) (req *http.Request, err error)
- func RemoveExtraHTTPHostPort(req *http.Request)
- func RemoveHopByHopHeaders(header http.Header)
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBasicProxyAuthorization ¶
DecodeBasicProxyAuthorization decode base64-encoded credential
func HandleConn ¶
func ParseBasicProxyAuthorization ¶
ParseBasicProxyAuthorization parse header Proxy-Authorization and return base64-encoded credential
func RemoveExtraHTTPHostPort ¶
RemoveExtraHTTPHostPort remove extra host port (example.com:80 --> example.com) It resolves the behavior of some HTTP servers that do not handle host:80 (e.g. baidu.com)
func RemoveHopByHopHeaders ¶
RemoveHopByHopHeaders remove hop-by-hop header
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewWithAuthenticate ¶
func (*Listener) RawAddress ¶
RawAddress implements C.Listener
Click to show internal directories.
Click to hide internal directories.