[−][src]Struct http_fs::config::DefaultConfig
Default configuration
Trait Implementations
impl FileServeConfig for DefaultConfig
[src]
fn max_buffer_size() -> u64
[src]
Returns maximum size for buffer to read file. Read more
fn content_disposition_map(typ: Name) -> DispositionType
[src]
Describes mapping for mime type to content disposition header Read more
fn is_use_etag(_path: &Path) -> bool
[src]
Specifies whether ETag
should be used for caching Read more
fn is_use_last_modifier(_path: &Path) -> bool
[src]
Specifies whether Last-Modified
should be used for caching Read more
impl DirectoryListingConfig for DefaultConfig
[src]
fn create_body(base: &Path, path: &Path, dir: ReadDir) -> Bytes
[src]
Describes how to create HTML text for Directory listing Read more
impl StaticFileConfig for DefaultConfig
[src]
type FileService = Self
File serve configuration
type DirService = Self
Directory serve configuration
fn is_method_allowed(method: &Method) -> bool
[src]
Returns whether specified method is allowed for use. By default allows HEAD
and GET
Read more
fn serve_dir(&self) -> &Path
[src]
Returns directory from where to serve files. Read more
fn index_file(&self, _path: &Path) -> Option<&Path>
[src]
Returns name of index file to show. Read more
fn handle_directory(&self, _path: &Path) -> bool
[src]
Returns whether directory should be listed on access Read more
fn handle_not_found(
&self,
_path: &Path,
_out_headers: &mut HeaderMap
) -> (StatusCode, Bytes)
[src]
&self,
_path: &Path,
_out_headers: &mut HeaderMap
) -> (StatusCode, Bytes)
Handles entry that hasn't been found. Read more
fn thread_pool_builder() -> ThreadPool
[src]
Describes how to get instance of threadpool::ThreadPool
Read more
impl Clone for DefaultConfig
[src]
fn clone(&self) -> DefaultConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for DefaultConfig
impl Sync for DefaultConfig
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.