Versions in this module Expand all Collapse all v1 v1.6.3 Jul 1, 2021 Changes in this version + type CheckerFunc func(*http.Request) (http.Header, error) + type Conn interface + Close func() error + Context func() interface{} + ID func() string + LocalAddr func() net.Addr + NextReader func() (session.FrameType, io.ReadCloser, error) + NextWriter func(fType session.FrameType) (io.WriteCloser, error) + RemoteAddr func() net.Addr + RemoteHeader func() http.Header + SetContext func(v interface{}) + URL func() url.URL + type ConnInitorFunc func(*http.Request, Conn) + type Dialer struct + Transports []transport.Transport + func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (Conn, error) + type Opener interface + Open func() (transport.ConnParameters, error) + type Options struct + ConnInitor ConnInitorFunc + PingInterval time.Duration + PingTimeout time.Duration + RequestChecker CheckerFunc + SessionIDGenerator session.IDGenerator + Transports []transport.Transport + type Pauser interface + Pause func() + Resume func() + type Server struct + func NewServer(opts *Options) *Server + func (s *Server) Accept() (Conn, error) + func (s *Server) Addr() net.Addr + func (s *Server) Close() error + func (s *Server) Count() int + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)