pub trait ResponseExt: Sized {
// Provided method
fn header(
self,
name: impl Into<String>,
value: impl Into<String>,
) -> WithHeaders<Self> { ... }
}Expand description
Ergonomic response decoration shared by typed success responses.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".