Versions in this module Expand all Collapse all v0 v0.4.1 Sep 27, 2024 v0.4.0 Aug 27, 2024 Changes in this version + const BinaryMessage + const TextMessage + type Config struct + Addr string + CertFile string + HandshakeTimeout time.Duration + KeyFile string + ReadBuffer int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + ShutdownTimeout time.Duration + WriteBuffer int + WriteTimeout time.Duration + type Conn struct + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(p []byte) (int, error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Write(p []byte) (n int, err error) + type Handler interface + OnConnection func(rwc net.Conn) + type Option struct + BaseContext func(net.Listener) context.Context + CheckOrigin func(r *http.Request) bool + ConnContext func(ctx context.Context, c net.Conn) context.Context + ConnState func(net.Conn, http.ConnState) + ErrorLog *log.Logger + Logger logger.Logger + MaxHeaderBytes int + MessageType int + TLSConfig *tls.Config + TLSNextProto map[string]func(*http.Server, *tls.Conn, http.Handler) + type Server struct + func New(opt Option) *Server + func (s *Server) Handler(handler Handler) + func (s *Server) Run() error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Shutdown() error