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]
fn from_headers<'x, I>(cfg: &Arc<Config>, method: &str, headers: I) -> Input where
I: Iterator<Item = (&'x str, &'x [u8])>,
I: Iterator<Item = (&'x str, &'x [u8])>,
A constructor for Input
object
fn encodings(&self) -> EncodingIter
Iterate over encodings accepted by user-agent in preferred order
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 Clone for Input
[src]
fn clone(&self) -> Input
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more