http

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, dest net.Destination, c *HttpConfig, se security.Engine, sc i.Dialer) (net.Conn, error)

Dial dials a new TCP connection to the given destination.

Types

type Dialer

type Dialer struct {
	Config   *HttpConfig
	Security security.Engine
	Socket   i.Dialer
}

func NewDialer

func NewDialer(config *HttpConfig, securityEngine security.Engine, socket i.Dialer) *Dialer

func (*Dialer) Dial

func (d *Dialer) Dial(ctx context.Context, dest net.Destination) (net.Conn, error)

type HttpConfig

type HttpConfig = httppb.HttpConfig

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func Listen

func Listen(ctx context.Context, addr net.Destination, c *HttpConfig,
	li i.Listener, h func(net.Conn)) (*Listener, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) ServeHTTP

func (l *Listener) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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