Skip to main content

record_http_result

Function record_http_result 

Source
pub fn record_http_result(
    service: &str,
    method: &str,
    url: &str,
    started: Instant,
    result: &Result<Response>,
)
Expand description

Appends one kind: "http" record from a reqwest send result, mapping Ok → status code and Err → error message.

Collapses the match result { Ok → status, Err → error } shape the REST clients previously each open-coded around record_http (#1152).