http2

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *protocol.Protocol_Http2) point.WrapProxy

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