pub trait IntoHeaders {
    // Required method
    fn into_headers(self) -> Vec<(String, Vec<u8>)>;
}
Expand description

A trait for any type that can be turned into Response headers

Required Methods§

source

fn into_headers(self) -> Vec<(String, Vec<u8>)>

Turn self into Response headers

Implementations on Foreign Types§

source§

impl IntoHeaders for &HeaderMap

source§

impl IntoHeaders for Vec<(String, String)>

source§

impl IntoHeaders for Vec<(String, Vec<u8>)>

source§

impl IntoHeaders for HashMap<String, String>

source§

impl IntoHeaders for HashMap<String, Vec<u8>>

source§

impl IntoHeaders for HashMap<String, Vec<String>>

Implementors§