http

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(httpPacketHandler func(packet.HttpPacket), conf *config.Config) http.HandlerFunc

Handler proxies requests from the socks5 proxy, to the requested server, and then forwards the response back to the socks5 proxy. httpPacketHandler is called twice; once with just the request information, and then a second time once the response information is available. Handler also handles the special host "gitm", which

func ListenAndServe

func ListenAndServe(conf config.Config, httpPacketHandler func(packet.HttpPacket)) (*http.Server, error)

func ListenAndServeTls

func ListenAndServeTls(conf config.Config, httpPacketHandler func(packet.HttpPacket)) (*http.Server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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