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
NotFound
File 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
Directory
The matching path is a directory
InvalidMethod
Invalid method was requested
InvalidRange
Invalid Range
header in request, should return 416