httr2
Modern HTTP client for R with a pipeable request API, retries and OAuth support
httr2 is growing production concerns: tracing, throttling and token hygiene.
◆Recent moves
- 29d ago
httr2 1.3.0 fixes OAuth token caches that never expired
Fixes an OAuth cache bug worth understanding: the pruning pattern matched an unencrypted .rds file that was never written, so encrypted tokens were retained indefinitely regardless of age. Requiring rlang 1.3.0 also changes the hash naming cached files, meaning existing request and token caches will be treated as absent.
View source ↗ - 1mo ago
httr2 1.2.3 translates requests into curl commands
Debugging and testing get real attention: httr2_translate() converts a request into the equivalent curl command, and mocked or cached responses now carry the originating request in resp$request like real ones. Token refresh also forwards token_params from the original flow, fixing providers that need extra parameters.
View source ↗ - 8mo ago
httr2 1.2.2 emits OpenTelemetry traces for every request
⚡ SPARKThe release that puts httr2 into the observability stack, emitting OpenTelemetry traces for every request. Paired with genuine throttling fixes, it marks the shift from interactive convenience toward running inside production services.
View source ↗ - 1y ago
httr2 1.2.1 stops escaping colons in paths
Colons in paths are no longer escaped. A single-line correctness fix for URL construction.
View source ↗ - 1y ago
httr2 1.2.0 removes deprecated mocking and streaming APIs
A lifecycle release that clears out the past: req_perform_stream() is soft-deprecated for the connection-based req_perform_connection(), and previously deprecated functions like multi_req_perform(), with_mock() and local_mock() are removed outright along with several arguments. Breaking, but it settles the streaming and mocking story.
View source ↗ - 1y ago
httr2 1.1.2 fixes AWS request signing and header checks
Stricter input type checking in req_headers() and a fix for AWS request signing failing with a missing cache argument. Narrow corrections with no change in capability.
View source ↗