http2

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *protocol.Protocol_Http2) protocol.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 NewServer

func NewServer(lis net.Listener) *Server

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