Documentation ¶
Index ¶
- type QuicServerConfig
- type SocketUpgrader
- type WebSocketUpgrader
- func (u *WebSocketUpgrader) Close() error
- func (u *WebSocketUpgrader) ListenAndServe() error
- func (u *WebSocketUpgrader) Matches(r *http.Request) bool
- func (u *WebSocketUpgrader) SetHeaders(headers http.Header)
- func (u *WebSocketUpgrader) Upgrade(w http.ResponseWriter, r *http.Request) (adapters.SocketAdapter, error)
- type WebTransportUpgrader
- func (u *WebTransportUpgrader) Close() error
- func (u *WebTransportUpgrader) ListenAndServe() error
- func (u *WebTransportUpgrader) Matches(r *http.Request) bool
- func (u *WebTransportUpgrader) SetHeaders(headers http.Header)
- func (u *WebTransportUpgrader) SetQUICHeaders(header http.Header) error
- func (u *WebTransportUpgrader) Upgrade(w http.ResponseWriter, r *http.Request) (adapters.SocketAdapter, error)
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 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) SetHeaders ¶
func (u *WebSocketUpgrader) SetHeaders(headers http.Header)
func (*WebSocketUpgrader) Upgrade ¶
func (u *WebSocketUpgrader) Upgrade(w http.ResponseWriter, r *http.Request) (adapters.SocketAdapter, error)
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) SetHeaders ¶
func (u *WebTransportUpgrader) SetHeaders(headers http.Header)
func (*WebTransportUpgrader) SetQUICHeaders ¶
func (u *WebTransportUpgrader) SetQUICHeaders(header http.Header) error
func (*WebTransportUpgrader) Upgrade ¶
func (u *WebTransportUpgrader) Upgrade(w http.ResponseWriter, r *http.Request) (adapters.SocketAdapter, error)
Click to show internal directories.
Click to hide internal directories.