Skip to main content

HeaderNameAlg

Trait HeaderNameAlg 

Source
pub trait HeaderNameAlg {
    const HEADER_NAME: &'static str;
}
Expand description

States one header an answer carries.

A name is all a header is to a program. What an interpretation does with one is the same whatever the name, so a header a specification does not state is a marker a domain writes for itself, and no interpretation changes.

Required Associated Constants§

Source

const HEADER_NAME: &'static str

The name this header is written under, as the wire spells one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HeaderNameAlg for CacheControl

Source§

const HEADER_NAME: &'static str = "cache-control"

Source§

impl HeaderNameAlg for ContentDisposition

Source§

const HEADER_NAME: &'static str = "content-disposition"

Source§

impl HeaderNameAlg for ContentLanguage

Source§

const HEADER_NAME: &'static str = "content-language"

Source§

impl HeaderNameAlg for ETag

Source§

const HEADER_NAME: &'static str = "etag"

Source§

impl HeaderNameAlg for Expires

Source§

const HEADER_NAME: &'static str = "expires"

Source§

impl HeaderNameAlg for LastModified

Source§

const HEADER_NAME: &'static str = "last-modified"

Source§

const HEADER_NAME: &'static str = "link"

Source§

impl HeaderNameAlg for Location

Source§

const HEADER_NAME: &'static str = "location"

Source§

impl HeaderNameAlg for RetryAfter

Source§

const HEADER_NAME: &'static str = "retry-after"

Source§

impl HeaderNameAlg for Vary

Source§

const HEADER_NAME: &'static str = "vary"