mirror of
https://github.com/actix/actix-web.git
synced 2025-02-21 05:16:17 +00:00
add Client::new()
This commit is contained in:
parent
83d4447349
commit
cc24c77acc
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ impl Default for Client {
|
|||
}
|
||||
|
||||
impl Client {
|
||||
/// Create new client instance with default settings.
|
||||
pub fn new() -> Client {
|
||||
Client::default()
|
||||
}
|
||||
|
||||
/// Build client instance.
|
||||
pub fn build() -> ClientBuilder {
|
||||
ClientBuilder::new()
|
||||
|
|
Loading…
Reference in a new issue