source: code/trunk/vendor/nhooyr.io/websocket/accept_js.go@ 822

Last change on this file since 822 was 822, checked in by yakumo.izuru, 22 months ago

Prefer immortal.run over runit and rc.d, use vendored modules
for convenience.

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 451 bytes
RevLine 
[822]1package websocket
2
3import (
4 "errors"
5 "net/http"
6)
7
8// AcceptOptions represents Accept's options.
9type AcceptOptions struct {
10 Subprotocols []string
11 InsecureSkipVerify bool
12 OriginPatterns []string
13 CompressionMode CompressionMode
14 CompressionThreshold int
15}
16
17// Accept is stubbed out for Wasm.
18func Accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (*Conn, error) {
19 return nil, errors.New("unimplemented")
20}
Note: See TracBrowser for help on using the repository browser.