The previously default Client is moved to `reqwest::blocking`, while the async client becomes the main API. Closes #622
10 lines
181 B
Rust
10 lines
181 B
Rust
#[tokio::main]
|
|
async fn main() {
|
|
reqwest::Client::new()
|
|
.post("http://www.baidu.com")
|
|
.form(&[("one", "1")])
|
|
.send()
|
|
.await
|
|
.unwrap();
|
|
}
|