proxy

package
v0.0.0-...-552d98a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

Proxy server serve HTTP CONNECT requests

func NewProxy

func NewProxy(ca *pki.CertificateAuthority, http, https string) (p *Proxy, err error)

NewProxy return a listner that will handle HTTP CONNECT

func (*Proxy) Accept

func (p *Proxy) Accept() (net.Conn, error)

func (*Proxy) Addr

func (p *Proxy) Addr() net.Addr

func (*Proxy) Close

func (p *Proxy) Close() error

func (*Proxy) Serve

func (p *Proxy) Serve(handler http.Handler) chan error

Serve serve request on http and https

Jump to

Keyboard shortcuts

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