See test-redact.R. This was possible in httptest because the httr response object contains the request object, and the mock file path was generated off of that after redactors were applied. But in the current adaptation here, the file path is passed into save_response() as an argument because the httr2_response does not contain the request. So the redacting happens after the file path is generated.
See test-redact.R. This was possible in
httptest
because thehttr
response object contains the request object, and the mock file path was generated off of that after redactors were applied. But in the current adaptation here, the file path is passed intosave_response()
as an argument because the httr2_response does not contain the request. So the redacting happens after the file path is generated.