Documentation ¶
Index ¶
Constants ¶
View Source
const ( COPY_BUF = 128 * 1024 BAD_REQ_MSG = "Bad Request\n" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyHandler ¶
type ProxyHandler struct {
// contains filtered or unexported fields
}
func NewProxyHandler ¶
func NewProxyHandler(dialer dialer.ContextDialer, logger *clog.CondLogger) *ProxyHandler
func (*ProxyHandler) HandleRequest ¶
func (s *ProxyHandler) HandleRequest(wr http.ResponseWriter, req *http.Request)
func (*ProxyHandler) HandleTunnel ¶
func (s *ProxyHandler) HandleTunnel(wr http.ResponseWriter, req *http.Request)
func (*ProxyHandler) ServeHTTP ¶
func (s *ProxyHandler) ServeHTTP(wr http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.