Enum http_file_headers::Output [−][src]
pub enum Output {
NotFound,
FileHead(Head),
NotModified(Head),
File(FileWrapper),
FileRange(FileWrapper),
Directory,
InvalidMethod,
InvalidRange,
}This enum represents all the information needed to form response for the HTTP request
Variants of this structure represent different modes of responding on request.
Variants
NotFoundFile not found
FileHead(Head)File was requested using HEAD method
NotModified(Head)File is not modified, should return 304
This might be returned if there is one of If-None-Match
or If-Modified-Since
File(FileWrapper)Normal file was requested using GET method
FileRange(FileWrapper)The GET file request includes Range field, and range is
contiguous
DirectoryThe matching path is a directory
InvalidMethodInvalid method was requested
InvalidRangeInvalid Range header in request, should return 416