Skip to main content

request_target

Function request_target 

Source
fn request_target(ctx: &Context) -> String
Expand description

The outbound request-target: the request path plus the rebuilt query string when the request carried one.

query_params holds values exactly as received — ingress splits the raw query on &/= without percent-decoding — so rebuilding is lossless. Parameter order is normalized (sorted) because the original order is already lost in the HashMap at ingress; sorting at least makes the outbound target deterministic.