Macro hyper_fs::static_fs
[−]
[src]
macro_rules! static_fs { ($typo_fs: ident, $typo_file: ident, $fn_content_type_maker:ident, $typo_index: ident, $typo_exception_handler: ident) => { ... }; }
create a StaticFs
by owner types.
#[macro_use]
extern crate hyper_fs;
pub mod fs_server {
use hyper_fs::static_fs::*;
use hyper_fs::{StaticFile, StaticIndex,ExceptionHandler};
static_fs!(StaticFs2,StaticFile, StaticIndex, ExceptionHandler);
}