mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
update tests
This commit is contained in:
parent
4529efa948
commit
8c1487f7f2
@ -166,8 +166,8 @@ fn test_date_len() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_date() {
|
fn test_date() {
|
||||||
let mut buf1 = BytesMut::new();
|
let mut buf1 = BytesMut::new();
|
||||||
extend(&mut buf1);
|
date(&mut buf1);
|
||||||
let mut buf2 = BytesMut::new();
|
let mut buf2 = BytesMut::new();
|
||||||
extend(&mut buf2);
|
date(&mut buf2);
|
||||||
assert_eq!(buf1, buf2);
|
assert_eq!(buf1, buf2);
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ impl<T, A, H, U, V> HttpServer<T, A, H, U>
|
|||||||
U: IntoIterator<Item=V> + 'static,
|
U: IntoIterator<Item=V> + 'static,
|
||||||
V: IntoHttpHandler<Handler=H>,
|
V: IntoHttpHandler<Handler=H>,
|
||||||
{
|
{
|
||||||
/// Create new http server with vec of http handlers
|
/// Create new http server with application factory
|
||||||
pub fn new<F>(factory: F) -> Self
|
pub fn new<F>(factory: F) -> Self
|
||||||
where F: Sync + Send + 'static + Fn() -> U,
|
where F: Sync + Send + 'static + Fn() -> U,
|
||||||
{
|
{
|
||||||
@ -401,7 +401,6 @@ impl<T, A, H, U> Handler<IoStream<T>, io::Error> for HttpServer<T, A, H, U>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Http workers
|
/// Http workers
|
||||||
///
|
///
|
||||||
/// Worker accepts Socket objects via unbounded channel and start requests processing.
|
/// Worker accepts Socket objects via unbounded channel and start requests processing.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user