http2

package
v0.0.0-...-96f04ba Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(s string) (auth, addr, domain, scheme string, err error)

ParseURL

Types

type Handler

type Handler struct {
	// give new http.MethocConnect http.Request
	NewRequest func(string, io.ReadCloser) *http.Request

	// for connect to proxy server
	http.Client
	// contains filtered or unexported fields
}

Hander is ...

func NewHandler

func NewHandler(s string, timeout time.Duration) (*Handler, error)

NewHandler is ...

func (*Handler) Close

func (h *Handler) Close() error

Close is ...

func (*Handler) Handle

func (h *Handler) Handle(conn net.Conn, tgt net.Addr) error

Handle is ...

func (*Handler) HandlePacket

func (h *Handler) HandlePacket(conn gonet.PacketConn) error

HandlePacket is ...

type Reader

type Reader struct {
	io.Reader
}

Reader is ...

func (*Reader) Close

func (r *Reader) Close() error

Close is ...

Jump to

Keyboard shortcuts

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