http

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpProxy

func NewHttpProxy(port string)

Types

type HttpAdapter

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

func NewHttp

func NewHttp(host string, w http.ResponseWriter, r *http.Request) (*HttpAdapter, chan struct{})

func (*HttpAdapter) Addr

func (h *HttpAdapter) Addr() *C.Addr

func (*HttpAdapter) Close

func (h *HttpAdapter) Close()

func (*HttpAdapter) Connect

func (h *HttpAdapter) Connect(proxy C.ProxyAdapter)

type HttpsAdapter

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

func NewHttps

func NewHttps(host string, conn net.Conn) *HttpsAdapter

func (*HttpsAdapter) Addr

func (h *HttpsAdapter) Addr() *C.Addr

func (*HttpsAdapter) Close

func (h *HttpsAdapter) Close()

func (*HttpsAdapter) Connect

func (h *HttpsAdapter) Connect(proxy C.ProxyAdapter)

Jump to

Keyboard shortcuts

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