spin_sdk::http::conversions

Trait IntoHeaders

Source
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§