http2

package
v0.0.0-...-8e6527b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 14 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 {
	// NewRequest is ...
	// give new http.MethocConnect http.Request
	NewRequest func(string, io.ReadCloser, string) *http.Request

	// Client is ...
	// for connect to proxy server
	Client 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 gonet.Conn, tgt net.Addr) error

Handle is ...

func (*Handler) HandlePacket

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

HandlePacket is ...

type NetDialer

type NetDialer struct {
	// Dialer is ...
	Dialer net.Dialer
	// Addr is ...
	Addr string
}

NetDialer is ...

func (*NetDialer) DialTLS

func (d *NetDialer) DialTLS(network, addr string, cfg *tls.Config) (conn net.Conn, err error)

DialTLS is ...

type QUICDialer

type QUICDialer struct {
	// Addr is ...
	Addr string
}

QUICDialer is ...

func (*QUICDialer) Dial

func (d *QUICDialer) Dial(ctx context.Context, network, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error)

Dial is ...

type Reader

type Reader struct {
	io.Reader
	// contains filtered or unexported fields
}

Reader is ...

func NewReader

func NewReader(r io.Reader) *Reader

NewReader is ...

func (*Reader) Close

func (r *Reader) Close() error

Close is ...

func (*Reader) Wait

func (r *Reader) Wait()

Wait is ...

Jump to

Keyboard shortcuts

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