Questions tagged [ureq]
5 questions
1
vote
1 answer
How to POST login requests using ureq?
I made a small prototype for my program in Python, in which I need to log in to a website. For doing that I did:
import requests as req
session = req.Session()
req.post("somesite.com", data={"procedure": "login", "username": "JohnSmith",…

Ekain06
- 21
- 3
1
vote
1 answer
What is interaction between paralel iterators from Rayon and blocking HTTP from ureq in Rust?
If I have a vec of 100 urls and make paralel iterator which makes 100 blocking HTTP requests, is the first request blocking the rest of them or can the all be made before some of them finish?

ditoslav
- 4,563
- 10
- 47
- 79
0
votes
1 answer
Handle invalid JSON parsing
So I request an URL with ureq lib and then parse the response to an array of enum Response object
let resp = ureq::get(url).call();
let results: Vec = match resp {
Ok(response) => response.into_json()?,
Err(Error::Status(_,…

Thong Nguyen
- 143
- 3
- 10
0
votes
0 answers
Strange error when multithreading downloads in Rust
I'm using Rust to download huge amounts of stock market data, around 50,000 GET requests per cycle. To make the process go significantly faster, I've been able to use multithreading. My code so far looks like this:
// Instantiate a channel so…

JBL
- 33
- 3
0
votes
2 answers
How to execute a map of blocking http requests in parallel?
I have a lot of code using ureq for http requests and I'm wondering if I can avoid using another http library.
I have a list of urls and I'm invoking ureq::get on them. I'm wondering if I can somehow make these calls in parallel. How would I create…

ditoslav
- 4,563
- 10
- 47
- 79