http

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPDialer

func NewHTTPDialer(s string, dialer proxy.Dialer) (proxy.Dialer, error)

NewHTTPDialer returns a http proxy dialer

func NewHTTPServer

func NewHTTPServer(s string, dialer proxy.Dialer) (proxy.Server, error)

NewHTTPServer returns a http proxy server

Types

type HTTP

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

HTTP struct

func NewHTTP

func NewHTTP(s string, dialer proxy.Dialer) (*HTTP, error)

NewHTTP returns a http proxy

func (*HTTP) Addr

func (s *HTTP) Addr() string

Addr returns forwarder's address

func (*HTTP) Dial

func (s *HTTP) Dial(network, addr string) (net.Conn, error)

Dial connects to the address addr on the network net via the proxy

func (*HTTP) DialUDP

func (s *HTTP) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error)

DialUDP connects to the given address via the proxy

func (*HTTP) ListenAndServe

func (s *HTTP) ListenAndServe()

ListenAndServe .

func (*HTTP) NextDialer

func (s *HTTP) NextDialer(dstAddr string) proxy.Dialer

NextDialer returns the next dialer

func (*HTTP) Serve

func (s *HTTP) Serve(c net.Conn)

Serve .

Jump to

Keyboard shortcuts

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