1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-12 02:09:36 +00:00

add backward compatibility

This commit is contained in:
Nikolay Kim 2019-04-05 11:36:26 -07:00
parent 18593d8476
commit 02fcaca3da
2 changed files with 14 additions and 4 deletions

View file

@ -173,8 +173,8 @@ where
self
}
/// Finish configuration process and create connector service.
/// The Connector builder always concludes by calling `finish()` last in
/// Finish configuration process and create connector service.
/// The Connector builder always concludes by calling `finish()` last in
/// its combinator chain.
pub fn finish(
self,
@ -265,6 +265,15 @@ where
}
}
}
#[doc(hidden)]
#[deprecated(since = "0.1.0-alpha4", note = "please use `.finish()` method")]
pub fn service(
self,
) -> impl Service<Request = Uri, Response = impl Connection, Error = ConnectError> + Clone
{
self.finish()
}
}
#[cfg(not(feature = "ssl"))]

View file

@ -189,6 +189,7 @@ pub mod client {
pub use awc::error::{
ConnectError, InvalidUrl, PayloadError, SendRequestError, WsClientError,
};
pub use awc::{test, Client, ClientBuilder, ClientRequest, ClientResponse,
Connector};
pub use awc::{
test, Client, ClientBuilder, ClientRequest, ClientResponse, Connector,
};
}