upgraders

package
v0.0.0-...-c5c3ef8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuicServerConfig

type QuicServerConfig struct {
	Addr      string
	TLSConfig *tls.Config
	Handler   http.HandlerFunc
}

type SocketUpgrader

type SocketUpgrader interface {
	io.Closer

	SetHeaders(headers http.Header)
	Upgrade(w http.ResponseWriter, r *http.Request) (adapters.SocketAdapter, error)
	ListenAndServe() error
	Matches(r *http.Request) bool
}

type WebSocketUpgrader

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

func NewWebSocketUpgrader

func NewWebSocketUpgrader() *WebSocketUpgrader

func (*WebSocketUpgrader) Close

func (u *WebSocketUpgrader) Close() error

func (*WebSocketUpgrader) ListenAndServe

func (u *WebSocketUpgrader) ListenAndServe() error

func (*WebSocketUpgrader) Matches

func (u *WebSocketUpgrader) Matches(r *http.Request) bool

func (*WebSocketUpgrader) SetHeaders

func (u *WebSocketUpgrader) SetHeaders(headers http.Header)

func (*WebSocketUpgrader) Upgrade

type WebTransportUpgrader

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

func NewWebTransportUpgrader

func NewWebTransportUpgrader(quicServer *QuicServerConfig) *WebTransportUpgrader

func (*WebTransportUpgrader) Close

func (u *WebTransportUpgrader) Close() error

func (*WebTransportUpgrader) ListenAndServe

func (u *WebTransportUpgrader) ListenAndServe() error

func (*WebTransportUpgrader) Matches

func (u *WebTransportUpgrader) Matches(r *http.Request) bool

func (*WebTransportUpgrader) SetHeaders

func (u *WebTransportUpgrader) SetHeaders(headers http.Header)

func (*WebTransportUpgrader) SetQUICHeaders

func (u *WebTransportUpgrader) SetQUICHeaders(header http.Header) error

func (*WebTransportUpgrader) Upgrade

Jump to

Keyboard shortcuts

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