Skip to main content

create_request_data_without_body

Function create_request_data_without_body 

Source
pub fn create_request_data_without_body(
    uri: &Uri,
    method: &Method,
    headers: &HeaderMap,
    path_params: HashMap<String, String>,
    options: WithoutBodyExtractionOptions,
) -> RequestData
Expand description

Create RequestData from request parts (for requests without body)

Wraps HashMaps in Arc to enable cheap cloning without duplicating data.

Performance optimizations:

  • Uses static singletons for empty path params, body, headers, cookies
  • Only allocates when data is present