Struct httpbis::solicit::header::Headers
[−]
[src]
pub struct Headers(pub Vec<Header>);
Methods
impl Headers
[src]
pub fn new() -> Headers
[src]
pub fn dump(&self) -> String
[src]
Multiline string
pub fn new_get(path: &str) -> Headers
[src]
pub fn new_post(path: &str) -> Headers
[src]
pub fn from_status(code: u32) -> Headers
[src]
pub fn ok_200() -> Headers
[src]
pub fn not_found_404() -> Headers
[src]
pub fn internal_error_500() -> Headers
[src]
pub fn get_opt<'a>(&'a self, name: &str) -> Option<&'a str>
[src]
pub fn get<'a>(&'a self, name: &str) -> &'a str
[src]
pub fn get_opt_parse<I: FromStr>(&self, name: &str) -> Option<I>
[src]
pub fn status(&self) -> u32
[src]
pub fn path(&self) -> &str
[src]
pub fn method(&self) -> &str
[src]
pub fn add(&mut self, name: &str, value: &str)
[src]
pub fn extend(&mut self, headers: Headers)
[src]
Trait Implementations
impl Default for Headers
[src]
impl Debug for Headers
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Headers
[src]
fn eq(&self, __arg_0: &Headers) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Headers) -> bool
[src]
This method tests for !=
.
impl Eq for Headers
[src]
impl Clone for Headers
[src]
fn clone(&self) -> Headers
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more