http

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: 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 Dialer

type Dialer interface {
	// Dial is ...
	Dial(string, string) (net.Conn, error)
}

Dialer is ...

type Handler

type Handler struct {
	// Dial is to dial new net.TCPConn or tls.Conn
	Dial func(string, string) (net.Conn, error)
	// contains filtered or unexported fields
}

Handler is ...

func NewHandler

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

NewHandler is ...

func (*Handler) Close

func (*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 NetDialer

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

NetDialer is ...

func (*NetDialer) Dial

func (d *NetDialer) Dial(network, addr string) (net.Conn, error)

Dial is ...

type TLSDialer

type TLSDialer struct {
	// Dialer is ...
	Dialer net.Dialer
	// Config is ...
	Config tls.Config
	// Addr is ...
	Addr string
}

TLSDialer is ...

func (*TLSDialer) Dial

func (d *TLSDialer) Dial(network, addr string) (net.Conn, error)

DialTLS is ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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