1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

separate mod for HttpHandler; add HttpHandler impl for Vec<H>

This commit is contained in:
Nikolay Kim
2018-09-09 18:06:00 -07:00
parent 6f3e70a92a
commit dbb4fab4f7
6 changed files with 204 additions and 93 deletions

View File

@@ -316,11 +316,8 @@ mod tests {
let mut rt = current_thread::Runtime::new().unwrap();
let _ = rt.block_on(future::lazy(|| {
let settings = WorkerSettings::<()>::new(
Vec::new(),
KeepAlive::Os,
ServerSettings::default(),
);
let settings =
WorkerSettings::<()>::new((), KeepAlive::Os, ServerSettings::default());
let mut buf1 = BytesMut::with_capacity(DATE_VALUE_LENGTH + 10);
settings.set_date(&mut buf1, true);
let mut buf2 = BytesMut::with_capacity(DATE_VALUE_LENGTH + 10);