reqwest Questions

1

Solved

I'm pretty new to Rust, and I just cannot seem to find the solution to this problem. I am trying to get the response of the get request as json. #[macro_use] extern crate serde; extern crate serd...
Disperse asked 6/5, 2020 at 7:17

1

Solved

I'm using the reqwest (version 0.10.4) crate for the HTTP calls in my Rust application but can't find any examples of how to handle APIs calls that could return more than one possible response body...
Photosynthesis asked 25/4, 2020 at 16:23

1

Solved

All I've found is that ClientBuilder has an option for setting the maximum idle connections per host, but this doesn't seem to give an overall limit to the number of connections available.
Kwei asked 26/2, 2020 at 17:21

1

Solved

A request via reqwest is expecting a long poll response, so I created a byte stream and tried to deserialize each chunk into JSON. I immediately realized that it is wrong because each chunk can be ...
Iraqi asked 12/2, 2020 at 22:24

1

Solved

I'm doing a direct download of an MP3 audio stream via Rust. As this stream is indefinite, I want to be able to cancel it early to save what I have downloaded so far. Currently, I do this by pressi...
Stale asked 12/12, 2019 at 14:34

1

Solved

I am trying to download a text file from a given URL using reqwest 0.10.0-alpha.2, which looks like an appropriate tool. I have this in my Cargo.toml file: [package] name = "..." version = "...
Airport asked 18/11, 2019 at 1:40

1

I am very new to rust and I want to write a script to scrape a page and pull all the links from it with their titles. I have failed to even make the get request. :( fn main() { println!("St...
Jowett asked 14/10, 2019 at 9:20

2

Solved

I need to make a GET request to a website with a cookie using the Reqwest library. I figured out how to send a GET request: let response = reqwest::get("http://example.com")?; How do I send the ...
Merrie asked 20/12, 2017 at 17:36

1

I was trying to get an elementary reqwest http-request going like so extern crate reqwest; extern crate url; use url::Url; fn main() { let resp = reqwest::get("http://google.com".parse::<Url...
Dewayne asked 8/9, 2018 at 18:51

1

Solved

With the following code (an attempt to make an HTTP request using the reqwest crate), the compiler says that my value SID_URI does not implement the trait PolyfillTryInto. What's going on here? req...
Midas asked 5/1, 2018 at 13:14

© 2022 - 2025 — McMap. All rights reserved.