func newServerConn(rwc io.ReadWriteCloser, buf *bufio.ReadWriter, req *http.Request, config *Config, handshake func(*Config, *http.Request) error) (conn *Conn, err error) { … }
type Server …
func (s Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { … }
func (s Server) serveWebSocket(w http.ResponseWriter, req *http.Request) { … }
type Handler …
func checkOrigin(config *Config, req *http.Request) (err error) { … }
func (h Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) { … }