Documentation ¶
Index ¶
- func ClientHelloServerName(peeker peek.Peeker) (sni string)
- func DecodeEd(s string) ([]byte, error)
- func DecodeXray0rtt(requestHeader http.Header) ([]byte, http.Header)
- func EncodeEd(edBuf []byte) string
- func EncodeXray0rtt(tcp net.Conn, ed uint32) (http.Header, []byte, error)
- func IsWebSocketUpgrade(r *http.Request) bool
- type WebsocketConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientHelloServerName ¶ added in v0.1.30
ClientHelloServerName returns the SNI server name inside the TLS ClientHello, without consuming any bytes from br. On any error, the empty string is returned.
func IsWebSocketUpgrade ¶ added in v0.1.34
Types ¶
type WebsocketConn ¶ added in v0.1.34
func NewWebsocketConn ¶ added in v0.1.34
func ServerWebsocketUpgrade ¶ added in v0.1.34
func ServerWebsocketUpgrade(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (*WebsocketConn, error)
func (*WebsocketConn) Close ¶ added in v0.1.34
func (w *WebsocketConn) Close() error
Click to show internal directories.
Click to hide internal directories.