Documentation ¶
Overview ¶
Package http offers protocol operations.
Index ¶
- type ReqestTransformer
- type Request
- func (r *Request) Command() string
- func (r *Request) GetRequest(w io.Writer, rd *bufio.Reader) (err error)
- func (r *Request) Host() string
- func (r *Request) Hostname() string
- func (r *Request) Port() string
- func (r *Request) Request(fw *forwarder.Forwarder, proxy, seg bool) (restart bool, err error)
- func (r *Request) Target() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqestTransformer ¶ added in v0.1.8
type ReqestTransformer struct {
Proxy bool
}
ReqestTransformer transforms http request for direct connections.
func (ReqestTransformer) Transform ¶ added in v0.1.8
func (t ReqestTransformer) Transform(b []byte) []byte
Transform does the transformation.
type Request ¶
type Request struct { Method string Proto string Auth string PostData []byte // to retry to defend RST TLSData []byte // to retry to defend RST, ClientHello Responsed bool Header textproto.MIMEHeader URL *url.URL TryCount byte // contains filtered or unexported fields }
Request struct.
func ParseRequest ¶
ParseRequest parses a request.
func (*Request) GetRequest ¶
GetRequest requests the ClientHello for sending to a remote server. RCWN (Race Cache With Network) or ads blockers would abort dial-in without sendig ClientHello! Drop it.
Click to show internal directories.
Click to hide internal directories.