Skip to main content

Module upstream

Module upstream 

Source
Expand description

Forwarding to a loopback inference server.

The destination is never taken from the request: it is a base URL the placement table verified as http://<loopback ip>:<port>, joined with an allowlisted origin-form path. The client keeps no proxy, follows no redirect and reuses no connection.

Structs§

Upstream
Streaming HTTP client for local servers.

Constants§

PROBE_TIMEOUT
Connect timeout used when probing whether a port is held.

Functions§

parse_loopback_base
http://<loopback ip>:<port> and nothing else (no path, userinfo or name: localhost could be remapped, an address cannot).