Versions in this module Expand all Collapse all v1 v1.2.0 Nov 11, 2023 Changes in this version + const ConnectEstablished + const RegExpMethods + func TransferFromListen(lAddr *net.TCPAddr, keepListening bool, output *HttpTransferContext) error + func TransferFromListenAddress(lAddress string, keepListening bool, output *HttpTransferContext) error + func TransferHTTP(src net.Conn, closed bool) (chan iokit.Direction, error) + func TransferTCPOrHTTP(src net.Conn, dst net.Conn, closed bool) (chan iokit.Direction, error) + func TransferTCPOrHTTPDynamic(src net.Conn, dstConnFactory iokit.ConnFactoryFunc, closed bool) (chan iokit.Direction, error) + type HttpPacket struct + Data []byte + Host string + Method string + Port int + Protocol string + func ResolvePacket(readLine []byte) (*HttpPacket, error) + func (p HttpPacket) DialDSTConn() (net.Conn, error) + func (p HttpPacket) GetAddress() string + func (p HttpPacket) IsMethodConnect() bool + type HttpTransferContext struct + DAddr *net.TCPAddr + DListener *net.TCPListener + KeepListening bool + LAddr *net.TCPAddr + LListener *net.TCPListener + StopChan *chan os.Signal + func BuildTransfer(lAddress string, keepListening bool) (*HttpTransferContext, error) + func (t HttpTransferContext) GetDListener() *net.TCPListener + func (t HttpTransferContext) GetLListener() *net.TCPListener + func (t HttpTransferContext) Stop() + func (t HttpTransferContext) TransferFromListen() error + type ParsePacketToConnFunc func(*HttpPacket) (net.Conn, error)