Documentation
¶
Overview ¶
Package xdaili provides a custom http.Transport and helpers for dynamic proxy service powered by xdaili.cn .
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthHeader ¶
GetAuthHeader returns a HTTP header key-value for authenticated request to use proxy provided by xdaili.
Types ¶
type ProxyAuthTransport ¶
type ProxyAuthTransport struct {
http.RoundTripper
// contains filtered or unexported fields
}
ProxyAuthTransport wraps an http.RoundTripper with XDaili proxy authentication.
func NewProxyAuthTransport ¶
func NewProxyAuthTransport(upstream *http.Transport, order, secret string) *ProxyAuthTransport
NewProxyAuthTransport returns a modified http.Transport with authentication required by http://www.xdaili.cn/ .
Click to show internal directories.
Click to hide internal directories.