pub type ResponseModifier = Arc<dyn Fn(&GatewayRequest, &mut GatewayResponse) + Send + Sync>;Expand description
A handler for modifying HTTP responses before they are sent.
Functions of this type are invoked after the inner service returns a successful response. They receive a read-only view of the original request (headers/metadata) and a mutable reference to the response, allowing for header injection or status modification.
Aliased Typeยง
pub struct ResponseModifier { /* private fields */ }