Skip to content

Switch from httr to httr2 dependency#440

Open
pepijn-devries wants to merge 3 commits intocloudyr:masterfrom
pepijn-devries:httr2
Open

Switch from httr to httr2 dependency#440
pepijn-devries wants to merge 3 commits intocloudyr:masterfrom
pepijn-devries:httr2

Conversation

@pepijn-devries
Copy link

Motivation

httr is no longer actively developed and has gone stale in that respect. Using httr2 will allow easy access to new features like httr2::req_perform_parallel(), allowing to perform multiple requests simultaneously.

Notes

Before merging this PR, there are some things to consider, which may need some more attention:

Deprecated arguments

The httr2 package does neither support write_disk nor write_fn arguments. This is why I deprecated them in s3HTTP, and replaced them with the file argument, which will store the response body in the file path specified by file.

Tests

Tests requiring authentication could not be performed locally, due to missing keys. I did some tests with S3 storage for which I do have keys, and this PR works on it. Note that I have modified tests requiring keys to be skipped if the keys are not present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant