1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-01 01:16:59 +02:00

re-arrange exports, some doc string updates

This commit is contained in:
Nikolay Kim
2018-03-29 10:44:26 -07:00
parent 32052c2750
commit ae6c9cb7fa
12 changed files with 74 additions and 16 deletions

View File

@@ -433,7 +433,7 @@ impl<S: 'static> StaticFiles<S> {
self
}
/// Sets default resource which is used when no matched file could be found.
/// Sets default handler which is used when no matched file could be found.
pub fn default_handler<H: Handler<S>>(mut self, handler: H) -> StaticFiles<S> {
self.default = Box::new(WrapHandler::new(handler));
self