Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoTCPConnection = errors.New("not a TCP Connection")
)
Functions ¶
This section is empty.
Types ¶
type HeadersFunc ¶
type TunnelHTTPClient ¶
type TunnelHTTPClient struct { DestAddr string LocalAddr string // contains filtered or unexported fields }
func NewTunnelHTTPClient ¶
func NewTunnelHTTPClient() *TunnelHTTPClient
func (*TunnelHTTPClient) ListenAndServe ¶
func (thc *TunnelHTTPClient) ListenAndServe(st ServMode) (err error)
ListenAndServe 启动服务1
func (*TunnelHTTPClient) SetHeadersFunc ¶
func (thc *TunnelHTTPClient) SetHeadersFunc(fn HeadersFunc)
func (*TunnelHTTPClient) SetRelayMethod ¶
func (thc *TunnelHTTPClient) SetRelayMethod(methods string)
SetRelayMethod 设置允许HTTP流量中继的方法
Click to show internal directories.
Click to hide internal directories.