Struct http_file_headers::Head
[−]
[src]
pub struct Head { /* fields omitted */ }
All the metadata of for the response headers
Methods
impl Head
[src]
fn is_partial(&self) -> bool
[src]
Returns true if response contains partial content (206)
fn is_not_modified(&self) -> bool
[src]
Returns true if response is skipped because cache is fresh (304)
fn content_length(&self) -> u64
[src]
Returns the value of Content-Length
header that should be sent
fn headers(&self) -> HeaderIter
[src]
Returns the iterator over headers to send in response
Note: this does not include Content-Length
header,
use content_length()
method explicitly.