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:
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user