http

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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

func NewServer

func NewServer(o *listener.Http, ii netapi.Listener, handler netapi.Handler) (netapi.Accepter, error)

func ParseBasicAuth added in v0.3.8

func ParseBasicAuth(auth string) (username, password string, ok bool)

Types

type Server

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

func (*Server) AcceptPacket added in v0.3.3

func (s *Server) AcceptPacket() (*netapi.Packet, error)

func (*Server) Close added in v0.3.3

func (s *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