1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 10:02:38 +01:00
actix-web/src/staticfiles.rs
2017-10-14 22:52:38 -07:00

24 lines
467 B
Rust

#![allow(dead_code, unused_variables)]
use std::rc::Rc;
use task::Task;
use route::RouteHandler;
use payload::Payload;
use httpcodes::HTTPOk;
use httprequest::HttpRequest;
pub struct StaticFiles {
directory: String,
show_index: bool,
chunk_size: usize,
follow_synlinks: bool,
}
impl<S: 'static> RouteHandler<S> for StaticFiles {
fn handle(&self, req: HttpRequest, payload: Payload, state: Rc<S>) -> Task {
Task::reply(HTTPOk)
}
}