mirror of
https://github.com/actix/actix-web.git
synced 2025-09-01 00:13:47 +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 {
|
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()
|
||||||
|
|
Loading…
Reference in a new issue