pub trait Header {
// Required methods
fn name(&self) -> HeaderName;
fn value(&self) -> HeaderValue;
}Expand description
View a type as an HTTP header.
Required Methods§
Sourcefn name(&self) -> HeaderName
fn name(&self) -> HeaderName
Get the name of the header.
Sourcefn value(&self) -> HeaderValue
fn value(&self) -> HeaderValue
Get the value of the header.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".