Skip to main content

HeaderName

Trait HeaderName 

Source
pub trait HeaderName {
    const NAME: &'static str;
}
Expand description

Trait for header name markers.

Required Associated Constants§

Source

const NAME: &'static str

The HTTP header name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl HeaderName for Accept

Source§

const NAME: &'static str = "accept"

Source§

impl HeaderName for Authorization

Source§

const NAME: &'static str = "authorization"

Source§

impl HeaderName for ContentType

Source§

const NAME: &'static str = "content-type"

Source§

impl HeaderName for Host

Source§

const NAME: &'static str = "host"

Source§

impl HeaderName for UserAgent

Source§

const NAME: &'static str = "user-agent"

Source§

impl HeaderName for XRequestId

Source§

const NAME: &'static str = "x-request-id"