pub enum Through {
Direct,
Environment(String),
Excluded,
LocalAddress,
Disabled,
}Expand description
What the city believes it will send this request through.
Four of the five readings mean “no proxy”, and they are kept apart
because the next step differs for each: nothing names one, the
person’s own NO_PROXY excludes this host, the city’s rule takes an
address on this machine off the proxy, or the person settled
Proxying::Never for this endpoint. A person whose call fails can
act on the reason and cannot act on “direct”.
Variants§
Direct
Straight out, as far as this machine’s environment says.
Environment(String)
An environment variable named it, and this is the variable.
Excluded
This host is on NO_PROXY, so the variables do not apply to it.
LocalAddress
The address is on the machine the city runs on, and
Proxying::ExceptLocal keeps such a call off the proxy.
Disabled
The person settled Proxying::Never for this endpoint, so no
proxy applies whatever this machine is configured with.