Skip to main content

StandardHeader

Trait StandardHeader 

Source
pub trait StandardHeader: Header + Sized {
    // Required method
    fn http_header_name() -> HeaderName;
}
Expand description

A trait for the “standard” headers that have an associated HeaderName constant in the http crate.

Required Methods§

Source

fn http_header_name() -> HeaderName

The HeaderName from the http crate for this header.

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§