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