Skip to main content

debug_log_reqwest_request

Function debug_log_reqwest_request 

Source
pub fn debug_log_reqwest_request(request: &Request)
Expand description

Logs a reqwest::Request to the process-wide default transport logger.

This is the bridge for code that talks to reqwest directly — bare clients or progenitor-generated clients that cannot use HttpClient — so a single --debug-controlled trace can still cover them. Captures the request method, URL, headers, and in-memory body. Pairs with debug_log_reqwest_response. It is a no-op (no header clone or body copy) unless an enabled logger has been installed via set_default_transport_logger.