http

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Method    string
	Url       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
}

func ParseRequest

func ParseRequest(rd *bufio.Reader) (r *Request, err error)

func (*Request) Command

func (r *Request) Command() string

func (*Request) GetRequest

func (r *Request) GetRequest(w io.Writer, rd *bufio.Reader) (err error)

Request 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.

func (*Request) Host

func (r *Request) Host() string

func (*Request) Hostname

func (r *Request) Hostname() string

func (*Request) Port

func (r *Request) Port() string

func (*Request) Request

func (r *Request) Request(fw *forwarder.Forwarder) (err error)

func (*Request) Target

func (r *Request) Target() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL