1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-19 12:25:37 +02:00

.to_async() handler can return Responder type #792

This commit is contained in:
Nikolay Kim
2019-04-22 14:22:08 -07:00
parent d00c9bb844
commit 48bee55087
6 changed files with 118 additions and 24 deletions

View File

@@ -217,7 +217,7 @@ where
F: AsyncFactory<I, R>,
I: FromRequest + 'static,
R: IntoFuture + 'static,
R::Item: Into<Response>,
R::Item: Responder,
R::Error: Into<Error>,
{
self.routes.push(Route::new().to_async(handler));