cmd

package
v0.0.0-...-2c363c2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AddrPort80 is ...
	AddrPort80 = (*net.TCPAddr)(nil)
	// AddrPort443 is ...
	AddrPort443 = (*net.TCPAddr)(nil)
)

Functions

func Dial

func Dial(addr *net.TCPAddr) (net.Conn, error)

Dial is ...

func Listen

func Listen(addr *net.TCPAddr) (net.Listener, error)

Listen is ...

func ResolveAddr

func ResolveAddr(s string) (*net.TCPAddr, error)

ResolveAddr is ...

func Run

func Run()

Run is ...

Types

type Server

type Server struct {
	Addr     string
	Dialer   websocket.Dialer
	Upgrader websocket.Upgrader
	// contains filtered or unexported fields
}

Server is ...

func NewServer

func NewServer(addr, cert, key, proxy, rules string) (*Server, error)

NewServer is ...

func (*Server) Serve

func (s *Server) Serve() error

Serve is ...

func (*Server) ServeHTTP

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

server http proxy: GET and CONNECT

func (*Server) ServeMITM

func (s *Server) ServeMITM(w http.ResponseWriter, r *http.Request)

ServeMITM is ...

func (*Server) ServeWebSocket

func (s *Server) ServeWebSocket(w http.ResponseWriter, rr, r *http.Request)

ServeWebSocket is ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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