-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simulate connect delay #19
Comments
Hey @mre! Right now I don't believe there is a way for you to simulate a connection delay: I would imagine that being a |
Hey, thanks for the feedback. You're right, the |
This is a very useful feature and I'd like to help here. I have done some digging into this, and I think we could simulate a connect delay quite easily. Basically the idea is to delay (e.g. by sleeping) each of the I would have to confirm this by poking around with a toy HTTP server. Tools like |
I was under the impression that adding a delay on |
Hey,
thanks for the crate.
I'm building a link checker and I need a way to simulate a connect delay.
Here's a little snippet to show what I tried:
get_checker
is just a wrapper around reqwest.This didn't work. It's obvious, in hindsight, because I was mixing up the response delay with a connect delay.
Any way I could test that right now? Maybe there could be another parameter
set_connect_delay
for that?The text was updated successfully, but these errors were encountered: