Module raw_connect

Source
Expand description

CONNECT protocol over http 1.1 via raw Unix domain socket

This mod implements the most rudimentary CONNECT client over raw stream. The idea is to yield raw stream once the CONNECT handshake is complete so that the protocol encapsulated can use the stream directly. This idea only works for CONNECT over HTTP 1.1 and localhost (or where the server is close by).

Structs§

ConnectProxyError
The error returned when the CONNECT proxy fails to establish.
ProxyDigest
The information about the CONNECT proxy.

Functions§

connect
Try to establish a CONNECT proxy via the given stream.
generate_connect_header
Generate the CONNECT header for the given destination