Expand description
The upstream node — forwards the request to a backend target over HTTP,
with round-robin, least-connections, or IP-hash load balancing across the
configured targets, and writes the backend’s reply into Context.response.
Structs§
- Upstream
Plugin - Proxies the request to one of the configured backend targets and populates
Context.responsewith the upstream’s status, headers, and body.
Functions§
- forwarded_
headers 🔒 - Forwards the request’s headers to the upstream, overriding
Hostwith the selected target. Shared by bothexecutebranches viaUpstreamPlugin::outbound_request. - map_
outbound_ 🔒error - Maps an
OutboundErrorto the(code, message)pair used on this node’s error port. Shared by the buffered and streaming branches so a fix to one (e.g. a wording or timeout-classification change) can’t land in only one of them. - request_
target 🔒 - The outbound request-target: the request path plus the rebuilt query string when the request carried one.