Skip to main content

Module middleware

Module middleware 

Source
Expand description

Shared utilities for token renewal.

StructsΒ§

MiddlewareWrapper πŸ”’
Bridges a MiddlewareExt implementation to [reqwest_middleware::Middleware], which can’t be implemented directly because the trait is defined in an external crate.

ConstantsΒ§

TOKEN_RENEW_MARGIN_SECONDS πŸ”’

TraitsΒ§

MiddlewareExt πŸ”’
Implemented by token handlers to expose stored token state and a renewal hook. The middleware owns the coalescing decision under the MiddlewareWrapper mutex.

FunctionsΒ§

attach_header πŸ”’