Skip to main content

Header

Trait Header 

Source
pub trait Header {
    // Required methods
    fn name(&self) -> HeaderName;
    fn value(&self) -> HeaderValue;
}
Expand description

View a type as an HTTP header.

Required Methods§

Source

fn name(&self) -> HeaderName

Get the name of the header.

Source

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".

Implementors§