Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBlockedHost = errors.New("host is blocked")
View Source
var ErrNonHijackableWriter = errors.New("failed to acquire raw client connection: writer is not hijackable")
ErrNonHijackableWriter is an error that is returned when the connection cannot be hijacked.
Functions ¶
Types ¶
type HTTPProxyHandler ¶
type HTTPProxyHandler struct { // Dialer is the dialer for connecting to the SOCKS5 proxy. Dialer proxy.Dialer UserAgent string }
HTTPProxyHandler is a proxy handler that passes on request to a SOCKS5 proxy server.
func (*HTTPProxyHandler) ServeHTTP ¶
func (h *HTTPProxyHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.