mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
add backward compatibility
This commit is contained in:
parent
18593d8476
commit
02fcaca3da
@ -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"))]
|
#[cfg(not(feature = "ssl"))]
|
||||||
|
@ -189,6 +189,7 @@ pub mod client {
|
|||||||
pub use awc::error::{
|
pub use awc::error::{
|
||||||
ConnectError, InvalidUrl, PayloadError, SendRequestError, WsClientError,
|
ConnectError, InvalidUrl, PayloadError, SendRequestError, WsClientError,
|
||||||
};
|
};
|
||||||
pub use awc::{test, Client, ClientBuilder, ClientRequest, ClientResponse,
|
pub use awc::{
|
||||||
Connector};
|
test, Client, ClientBuilder, ClientRequest, ClientResponse, Connector,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user