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.1.1"

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
Upload no

Macros

static_file

create a StaticFile by owner ExceptionHandler.

static_fs

create a StaticFs by owner types.

static_index

create a StaticIndex by owner ExceptionHandler.

Structs

Config

public config for file/index/fs

ExceptionHandler

Default ExceptionHandler

StaticFile

Static File

StaticFs

Static File System

StaticIndex

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

Enums

Exception

Error wrapped.

Traits

ExceptionHandlerService

handle Exception and return Response if it occurs.

ExceptionHandlerServiceAsync

Auto impl...

Functions

content_type_maker

use mime_guess to add Content-Type for file.

Type Definitions

FutureObject

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