1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 17:46:38 +02:00

add HttpContext::drain()

This commit is contained in:
Nikolay Kim
2017-10-29 06:05:31 -07:00
parent 5cd25cc8b1
commit af1e0bac08
7 changed files with 156 additions and 50 deletions

View File

@@ -91,7 +91,7 @@ impl Application<()> {
parts: Some(ApplicationBuilderParts {
state: (),
prefix: prefix.to_string(),
default: Resource::default(),
default: Resource::default_not_found(),
handlers: HashMap::new(),
resources: HashMap::new(),
middlewares: Vec::new(),
@@ -110,7 +110,7 @@ impl<S> Application<S> where S: 'static {
parts: Some(ApplicationBuilderParts {
state: state,
prefix: prefix.to_string(),
default: Resource::default(),
default: Resource::default_not_found(),
handlers: HashMap::new(),
resources: HashMap::new(),
middlewares: Vec::new(),