Skip to main content

HeaderLookup

Trait HeaderLookup 

Source
pub trait HeaderLookup {
    // Required method
    fn get_header(&self, name: &str) -> Option<String>;
}
Expand description

表示可查询 Header 的对象。

Required Methods§

Source

fn get_header(&self, name: &str) -> Option<String>

读取指定名称的 Header。

Implementations on Foreign Types§

Source§

impl HeaderLookup for BTreeMap<String, String>

Source§

fn get_header(&self, name: &str) -> Option<String>

Source§

impl HeaderLookup for HeaderMap

Source§

fn get_header(&self, name: &str) -> Option<String>

Source§

impl<const N: usize> HeaderLookup for [(&str, &str); N]

Source§

fn get_header(&self, name: &str) -> Option<String>

Implementors§