1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

server tests

This commit is contained in:
Nikolay Kim
2017-10-22 12:48:43 -07:00
parent 71f7606baf
commit 26989f5591
4 changed files with 23 additions and 36 deletions

View File

@ -12,6 +12,7 @@ use httpresponse::HttpResponse;
use server::HttpHandler;
/// Middleware definition
#[allow(unused_variables)]
pub trait Middleware {
@ -21,7 +22,7 @@ pub trait Middleware {
}
/// Method is called when handler returns response,
/// but before sending body stream to peer.
/// but before sending body streams to peer.
fn response(&self, req: &mut HttpRequest, resp: HttpResponse) -> HttpResponse {
resp
}

View File

@ -1,4 +1,4 @@
//! Http framework for [Actix](https://github.com/fafhrd91/actix)
//! Web framework for [Actix](https://github.com/fafhrd91/actix)
#[macro_use]
extern crate log;