Skip to main content

Module connect

Module connect 

Source
Available on crate feature client only.
Expand description

Dev-only connect-to overrides (like curl’s --connect-to): a request still names and signs for its origin’s authority, but the socket goes elsewhere. It lets a proxy in a container reach servers that identify as localhost on the developer’s machine.

Structs§

ConnectTo
Authorities whose requests go to another origin. Empty by default: every request goes where its URL says.
Route
Where to send a request, and the Host it must still carry.