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