Documentation
¶
Index ¶
- func Handler(httpPacketHandler func(packet.HttpPacket), conf *config.Config) http.HandlerFunc
- func ListenAndServe(conf config.Config, httpPacketHandler func(packet.HttpPacket)) (*http.Server, error)
- func ListenAndServeTls(conf config.Config, httpPacketHandler func(packet.HttpPacket)) (*http.Server, error)
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 ListenAndServeTls ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.