common

package
v0.0.0-...-2beff81 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KQuicProxy = "quic-proxy"
)
View Source
const (
	ProxyAuthHeader = "Quic-Proxy-Authorization"
)

Variables

This section is empty.

Functions

func GetBasicAuth

func GetBasicAuth(req *http.Request) (username, password string, ok bool)

func SetBasicAuth

func SetBasicAuth(username, password string, req *http.Request)

Types

type AcceptConn

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

type QuicDialer

type QuicDialer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewQuicDialer

func NewQuicDialer(skipCertVerify bool) *QuicDialer

func (*QuicDialer) Dial

func (qd *QuicDialer) Dial(network, addr string) (net.Conn, error)

type QuicListener

type QuicListener struct {
	quic.Listener
	// contains filtered or unexported fields
}

func NewQuicListener

func NewQuicListener(l quic.Listener) *QuicListener

func (*QuicListener) Accept

func (ql *QuicListener) Accept() (net.Conn, error)

type QuicStream

type QuicStream struct {
	quic.Stream
	// contains filtered or unexported fields
}

func (*QuicStream) LocalAddr

func (qs *QuicStream) LocalAddr() net.Addr

func (*QuicStream) RemoteAddr

func (qs *QuicStream) RemoteAddr() net.Addr

Jump to

Keyboard shortcuts

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