1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*!
[](https://github.com/biluohc/hyper-fs)
[](https://crates.io/crates/hyper-fs)
[](https://crates.io/crates/hyper-fs)
[](https://crates.io/crates/hyper-fs)
[](https://docs.rs/hyper-fs)
## [hyper-fs](https://github.com/biluohc/hyper-fs)
Static File Service for hyper 0.11+.
### Usage
On Cargo.toml:
```toml
[dependencies]
hyper-fs = "0.2.0"
```
### Documentation
* Visit [Docs.rs](https://docs.rs/hyper-fs/)
or
* Run `cargo doc --open` after modified the toml file.
### Examples
* [examples/](https://github.com/biluohc/hyper-fs/tree/master/examples)
* [fht2p](https://github.com/biluohc/fht2p): the library write for it.
## To Do
| name | status |
| ------ | --- |
|Get/Head | yes |
|Not Modified(304) | yes |
|File Range(bytes) | yes |
*/
extern crate bytes;
extern crate cfg_if;
extern crate futures;
extern crate futures_cpupool;
extern crate hyper;
extern crate log;
extern crate tokio_core;
extern crate url;
// extern crate mime;
extern crate walkdir;
use Future;
use ;
/// `Box<Future<Item = (Response, Request), Error = (Error, Request)>>`
pub type FutureObject = ;
/// `Box<Future<Item = Response, Error = HyperError>>`
pub type HyperFutureObject = ;
// #[doc(hidden)]
pub
pub
pub
pub
pub use Config;
pub use ;
pub use StaticIndex;
pub use StaticFile;
cfg_if!