httpproxy

package
v0.0.0-...-43c24cd Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 12 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 {
	Dial func(address string) (net.Conn, error)
	// contains filtered or unexported fields
}

Proxy http 隧道服务

func NewLocalProxy

func NewLocalProxy(remote string, useTLS bool, pool *badhost.Pool, authKey string) *Proxy

NewLocalProxy 本地隧道服务 通过 http CONNECT 请求要求远程服务建立隧道

func NewRemoteProxy

func NewRemoteProxy(authKey string) *Proxy

NewRemoteProxy 远各隧道服务 发送客户端请求到目标服务器

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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