mirror of
https://github.com/actix/actix-web.git
synced 2024-12-23 08:36:34 +00:00
update tests
This commit is contained in:
parent
4529efa948
commit
8c1487f7f2
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ impl ServerSettings {
|
||||||
|
|
||||||
/// An HTTP Server
|
/// An HTTP Server
|
||||||
///
|
///
|
||||||
/// `T` - async stream, anything that implements `AsyncRead` + `AsyncWrite`.
|
/// `T` - async stream, anything that implements `AsyncRead` + `AsyncWrite`.
|
||||||
///
|
///
|
||||||
/// `A` - peer address
|
/// `A` - peer address
|
||||||
///
|
///
|
||||||
|
@ -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…
Reference in a new issue