Struct http_file_headers::FileWrapper[][src]

pub struct FileWrapper { /* fields omitted */ }

Structure that contains all the metadata for response headers and the file which will be sent in response body.

Methods

impl FileWrapper
[src]

Returns true if response contains partial content (206)

Returns the value of Content-Length header that should be sent

Returns the iterator over headers to send in response

Note: this does not include Content-Length header, use content_length() method explicitly.

Read chunk from file into an output file

Must be run in disk thread

Trait Implementations

impl Debug for FileWrapper
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for FileWrapper

impl Sync for FileWrapper