Skip to main content

ResponseInterceptor

Type Alias ResponseInterceptor 

Source
pub type ResponseInterceptor = ArcMutatingFunction<HttpResponseMeta, HttpResult<()>>;
Expand description

Response interceptor function used to inspect/mutate response metadata (status, headers, url) before the response is returned to callers.

Returning Err short-circuits execution for the current attempt.

Aliased Typeยง

pub struct ResponseInterceptor { /* private fields */ }