Crate hyper_fs [] [src]

Build status Latest version All downloads Downloads of latest version Documentation

hyper-fs

Static File Service for hyper 0.11+.

Usage

On Cargo.toml:

 [dependencies]
 hyper-fs = "0.2.0"

Documentation

or

  • Run cargo doc --open after modified the toml file.

Examples

To Do

name status
Get/Head yes
Not Modified(304) yes
File Range(bytes) yes

Structs

Config

public config for file/index/fs

StaticFile

Static File

StaticFs

Static File System

StaticIndex

Static Index: Simple html list the name of every entry for a index

Enums

Error

Error wrapped.

Functions

content_type_maker

use mime_guess to add Content-Type for file.

error_handler

Default Error Handler function

Type Definitions

FutureObject

Box<Future<Item = (Response, Request), Error = (Error, Request)>>

HyperFutureObject

Box<Future<Item = Response, Error = HyperError>>