httpproxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpProxy

type HttpProxy struct {
	ConnectTimeout time.Duration

	Hijack func(net.Conn, *http.Request, string, string) bool

	DialContext func(context.Context, string, string) (net.Conn, error)
}

func (*HttpProxy) Dial

func (this *HttpProxy) Dial(ctx context.Context, network, host, port string) (net.Conn, error)

func (*HttpProxy) ServeHTTP

func (this *HttpProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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