[−][src]Trait http_fs::config::FileServeConfig
Describes how to serve file
Provided methods
fn max_buffer_size() -> u64
Returns maximum size for buffer to read file.
By default 64kb
fn content_disposition_map(typ: Name) -> DispositionType
Describes mapping for mime type to content disposition header
By default IMAGE
, TEXT
and VIDEO
are mapped to Inline.
Others are mapped to Attachment
fn is_use_etag(_path: &Path) -> bool
Specifies whether ETag
should be used for caching
Provides path to the file, relative to File Service directory
By default it is true
fn is_use_last_modifier(_path: &Path) -> bool
Specifies whether Last-Modified
should be used for caching
Provides path to the file, relative to File Service directory
By default it is true