Skip to main content

HttpResponseInterceptor

Type Alias HttpResponseInterceptor 

Source
pub type HttpResponseInterceptor = ArcMutatingFunction<HttpResponseInterceptorContext, HttpResult<()>>;
Expand description

Response interceptor function used to inspect/mutate response metadata before the response is returned to callers.

The interceptor receives HttpResponseInterceptorContext, where status and request method are immutable and headers/final URL are mutable.

Returning Err short-circuits execution for the current attempt.

Aliased Typeยง

pub struct HttpResponseInterceptor { /* private fields */ }