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

File not found

File was requested using HEAD method

File is not modified, should return 304

This might be returned if there is one of If-None-Match or If-Modified-Since

Normal file was requested using GET method

The GET file request includes Range field, and range is contiguous

The matching path is a directory

Invalid method was requested

Invalid Range header in request, should return 416

Trait Implementations

impl Debug for Output
[src]

Formats the value using the given formatter.