1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-21 13:15:38 +02:00

add path and query extractors

This commit is contained in:
Nikolay Kim
2018-03-26 15:58:30 -07:00
parent a56e5113ee
commit 68cf32e848
9 changed files with 290 additions and 3 deletions

View File

@@ -227,6 +227,9 @@ impl From<Box<Future<Item=HttpResponse, Error=Error>>> for Reply {
}
}
/// Convenience type alias
pub type FutureResponse<I, E=Error> = Box<Future<Item=I, Error=E>>;
impl<I, E> Responder for Box<Future<Item=I, Error=E>>
where I: Responder + 'static,
E: Into<Error> + 'static