Trait rama::http::headers::HeaderExt

pub trait HeaderExt: Header + Sealed {
    // Required method
    fn encode_to_value(&self) -> HeaderValue;
}
Expand description

An external trait adding helper methods to types which implement Header trait.

Required Methods§

fn encode_to_value(&self) -> HeaderValue

Encode this Header to HeaderValue.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<H> HeaderExt for H
where H: Header + Sealed,