Closed jmaspons closed 2 months ago
Thanks. This seems reasonable. Would you mind adding a test that covers this case?
Yes, I would like to add a test. Could you give me an example about how to simulate and empty response? I've seen that webfakes is used but I have no experience with it
httr2::response()
makes responses, and as it turns out, with no arguments specified, the body will be empty. So you could test that save_response()
can write that to a tempfile, and probably should test that we can read it back in with load_response()
.
Tests added, @nealrichardson
Ready to merge, @nealrichardson
If the response has no body, write and empty file FIX #35