http

package
v0.0.0-...-5377069 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpProxy

func NewHttpProxy(port string)

Types

type ChunkWriter

type ChunkWriter struct {
	io.Writer
}

func (ChunkWriter) Write

func (cw ChunkWriter) Write(b []byte) (int, error)

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