Struct http_file_headers::Input [−][src]
pub struct Input { /* fields omitted */ }
The structure represents parsed input headers
Create it with Input::from_headers
, and make output structure
using Input::probe_file
. Note: the latter should be run in disk
thread.
Methods
impl Input
[src]
impl Input
pub fn from_headers<'x, I>(cfg: &Arc<Config>, method: &str, headers: I) -> Input where
I: Iterator<Item = (&'x str, &'x [u8])>,
[src]
pub fn from_headers<'x, I>(cfg: &Arc<Config>, method: &str, headers: I) -> Input where
I: Iterator<Item = (&'x str, &'x [u8])>,
A constructor for Input
object
ⓘImportant traits for Iter<'a>pub fn encodings(&self) -> EncodingIter
[src]
ⓘImportant traits for Iter<'a>
pub fn encodings(&self) -> EncodingIter
Iterate over encodings accepted by user-agent in preferred order
pub fn probe_file<P: AsRef<Path>>(&self, base_path: P) -> Result<Output, Error>
[src]
pub fn probe_file<P: AsRef<Path>>(&self, base_path: P) -> Result<Output, Error>
Open files from filesystem
Must be run in disk thread
Trait Implementations
impl Debug for Input
[src]
impl Debug for Input
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Input
[src]
impl Clone for Input