http2

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *protocol.Http2, p netapi.Proxy) (netapi.Proxy, error)

func NewServer

func NewServer(c *listener.Http2, ii netapi.Listener) (netapi.Listener, error)

Types

type Client

type Client struct {
	netapi.Proxy
	// contains filtered or unexported fields
}

func (*Client) Conn

func (c *Client) Conn(ctx context.Context, add netapi.Address) (net.Conn, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) Accept

func (h *Server) Accept() (net.Conn, error)

func (*Server) Addr

func (g *Server) Addr() net.Addr

func (*Server) Close

func (h *Server) Close() error

func (*Server) ServeHTTP

func (h *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL