You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first of all, it's awesome to see a library inspired by Ruby vcr. Nice work!
When making requests to an API as a client, not a server, the extra complexity of async is often not needed. In fact, the use case of consuming an API and using vcr to test it is exactly the case where, in my opinion, async is likely not needed.
Are there plans to add support for the synchronous, blocking client reqwest::blocking::Client? I don't think reqwest-middleware supports it, so either that would need to happen or another approach would need to be taken.
The text was updated successfully, but these errors were encountered:
I looked through reqwest::blocking module, and it lacks pluggable middleware support now, so while it's in theory possible, would require to expose some wrapper/facade interface around the reqwest::blocking::Client struct (similar how reqwest_middleware does that for async client).
This means augmenting rvcr interface with new symbols that will act differently from the things that library already implements. I myself don't use blocking reqwest now, so can't really decide on the best approach for designing such wrapper. If you or other folks from community can come up with PR suggesting such interface, that would be great.
Thank you for the consideration. I know that supporting both async and sync in rust is currently not easy. Here's an interesting article on the topic: https://nullderef.com/blog/rust-async-sync/. Feel free to close this issue if you like.
Hi, first of all, it's awesome to see a library inspired by Ruby vcr. Nice work!
When making requests to an API as a client, not a server, the extra complexity of async is often not needed. In fact, the use case of consuming an API and using vcr to test it is exactly the case where, in my opinion, async is likely not needed.
Are there plans to add support for the synchronous, blocking client
reqwest::blocking::Client
? I don't thinkreqwest-middleware
supports it, so either that would need to happen or another approach would need to be taken.The text was updated successfully, but these errors were encountered: