http

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleConn

func HandleConn(c net.Conn, tunnel C.Tunnel, store auth.AuthStore, additions ...inbound.Addition)

func ReadRequest

func ReadRequest(b *bufio.Reader) (req *http.Request, err error)

Types

type Listener

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

func New

func New(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*Listener, error)

func NewWithAuthenticate

func NewWithAuthenticate(addr string, tunnel C.Tunnel, authenticate bool, additions ...inbound.Addition) (*Listener, error)

NewWithAuthenticate never change type traits because it's used in CMFA

func NewWithAuthenticator added in v1.18.7

func NewWithAuthenticator(addr string, tunnel C.Tunnel, store auth.AuthStore, additions ...inbound.Addition) (*Listener, error)

func (*Listener) Address

func (l *Listener) Address() string

Address implements C.Listener

func (*Listener) Close

func (l *Listener) Close() error

Close implements C.Listener

func (*Listener) RawAddress

func (l *Listener) RawAddress() string

RawAddress implements C.Listener

Jump to

Keyboard shortcuts

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