mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-24 22:35:36 +02:00
use objects pool for HttpRequest; optimize nested services call
This commit is contained in:
@@ -8,7 +8,7 @@ macro_rules! STATIC_RESP {
|
||||
($name:ident, $status:expr) => {
|
||||
#[allow(non_snake_case, missing_docs)]
|
||||
pub fn $name() -> ResponseBuilder {
|
||||
Response::build($status)
|
||||
ResponseBuilder::new($status)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user