Documentation ¶
Overview ¶
Package http implements a http proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Methods = [...][]byte{ []byte("GET"), []byte("POST"), []byte("PUT"), []byte("DELETE"), []byte("CONNECT"), []byte("HEAD"), []byte("OPTIONS"), []byte("TRACE"), []byte("PATCH"), }
Methods are http methods from rfc. https://www.ietf.org/rfc/rfc2616.txt, http methods must be uppercase
Functions ¶
func NewHTTPDialer ¶
NewHTTPDialer returns a http proxy dialer.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP struct.
func (*HTTP) ListenAndServe ¶
func (s *HTTP) ListenAndServe()
ListenAndServe listens on server's addr and serves connections.
Click to show internal directories.
Click to hide internal directories.