Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveHopByHopHeaders ¶ added in v0.7.0
RemoveHopByHopHeaders remove hop-by-hop header
Types ¶
type HTTPAdapter ¶
HTTPAdapter is a adapter for HTTP connection
type SocketAdapter ¶ added in v0.7.0
type SocketAdapter struct {
// contains filtered or unexported fields
}
SocketAdapter is a adapter for socks and redir connection
func NewHTTPS ¶ added in v0.7.0
func NewHTTPS(request *http.Request, conn net.Conn) *SocketAdapter
NewHTTPS is HTTPAdapter generator
func NewSocket ¶ added in v0.7.0
func NewSocket(target socks.Addr, conn net.Conn) *SocketAdapter
NewSocket is SocketAdapter generator
func (*SocketAdapter) Addr ¶ added in v0.7.0
func (s *SocketAdapter) Addr() *C.Addr
Addr return destination address
func (*SocketAdapter) Close ¶ added in v0.7.0
func (s *SocketAdapter) Close()
Close socks and redir connection
func (*SocketAdapter) Conn ¶ added in v0.7.0
func (s *SocketAdapter) Conn() net.Conn
Conn return raw net.Conn
Click to show internal directories.
Click to hide internal directories.