Skip to main content

forward_parts

Function forward_parts 

Source
pub fn forward_parts(
    function_uri: &str,
    ctx: &Context,
) -> Result<(Vec<(String, String)>, String, Method), String>
Expand description

Builds the forwarded request parts for a FaaS callout: the header list (client headers minus hop-by-hop, with Host overridden to the endpoint), the fully-qualified target URL (function_uri path plus the client’s query string), and the client’s HTTP method.

Returns an error string when function_uri cannot be parsed or has no host.