Skip to main content

Module middleware

Module middleware 

Source
Expand description

Transport-boundary middleware for DynHttpClient. Attach hooks with with_middleware.

use rig_http::http_client::middleware::HttpMiddleware;

struct PassThrough;
impl HttpMiddleware for PassThrough {}

Traitsยง

HttpMiddleware
Transport-boundary hooks applied by DynHttpClient around every request.