Module request_extraction

Module request_extraction 

Source
Expand description

Request parsing and data extraction utilities

Performance optimizations in this module:

  • Static singletons for empty collections avoid repeated allocations
  • HashMap::with_capacity pre-allocates based on expected sizes
  • Arc wrapping enables cheap cloning of RequestData

Structs§

WithoutBodyExtractionOptions

Functions§

create_request_data_with_body
Create RequestData from request parts (for requests with body)
create_request_data_without_body
Create RequestData from request parts (for requests without body)
extract_cookies
Extract cookies from request headers
extract_headers
Extract headers from request
extract_query_params
Extract and parse query parameters from request URI
extract_raw_query_params
Extract raw query parameters as strings (no type conversion) Used for validation error messages to show the actual input values