Versions in this module Expand all Collapse all v0 v0.0.1 Mar 18, 2022 Changes in this version + var ErrHTTP2NotSupported = fmt.Errorf("HTTP2 not supported") + type Client struct + Client *http.Client + Header http.Header + Method string + func (c *Client) Connect(ctx context.Context, urlStr string) (*Conn, *http.Response, error) + type Conn struct + func Accept(w http.ResponseWriter, r *http.Request) (*Conn, error) + func Connect(ctx context.Context, urlStr string) (*Conn, *http.Response, error) + func (c *Conn) Close() error + func (c *Conn) Read(data []byte) (int, error) + 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(data []byte) (int, error) + func (s *Conn) LocalAddr() net.Addr + func (s *Conn) RemoteAddr() net.Addr + type Server struct + StatusCode int + func (u *Server) Accept(w http.ResponseWriter, r *http.Request) (*Conn, error)