1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

add Client::new()

This commit is contained in:
Nikolay Kim 2019-03-26 09:11:27 -07:00
parent 83d4447349
commit cc24c77acc

View File

@ -56,6 +56,11 @@ impl Default for Client {
} }
impl Client { impl Client {
/// Create new client instance with default settings.
pub fn new() -> Client {
Client::default()
}
/// Build client instance. /// Build client instance.
pub fn build() -> ClientBuilder { pub fn build() -> ClientBuilder {
ClientBuilder::new() ClientBuilder::new()