extract_request_info

Function extract_request_info 

Source
pub fn extract_request_info(session: &Session) -> OwnedRequestInfo
Expand description

Extract request info from a Pingora session

Builds an OwnedRequestInfo struct from the session’s request headers. This function allocates all fields.

For the hot path, use RequestInfo::new() with with_headers()/with_query_params() only when needed.

§Example

let request_info = extract_request_info(session);