-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for streaming requests with httr2
#273
Comments
Thanks for the issue @Aariq I'll have a look but i'm guessing it's because the streaming fxns don't have a hook for vcr to hook into like the normal http request infra has in |
yeah if you look at code for both the parallel and stream perform functions there's no when I find some time I can see what can be done. of course PRs are welcome |
opened an issue r-lib/httr2#651 to see if would be considered or not to add mocking ability |
hadley +1'ed it, i'll have a go at contributing the change over there |
I saw that, thanks! I'll keep an eye on both issue to see if there's anything I can do. |
It seems that currently
vcr
doesn't record cassettes for requests made withhttr2::req_perform_stream()
orhttr2::req_perform_connection()
. Maybe this is a limitation of how streaming requests work—I'm not sure.Created on 2025-01-21 with reprex v2.1.1
It would be nice to either have this "just work" or get a more customized warning for streaming requests. This comes from me re-factoring code originally using
curl
and comments in the tests mention that original stubs were created manually, so perhaps that is an option I should explore?The text was updated successfully, but these errors were encountered: