← Back to home
Comparison · DevOps

httr2 vs xml2

A side-by-side editorial comparison of httr2 and xml2 — release velocity, themes, recent moves, and the top alternatives to consider.

httr2 vs xml2: at a glance

Featurehttr2xml2
SectorDevOpsDevOps
Velocity score2.50.0
Sparks · 30d00
Top themesr, http-client, oauth, opentelemetryparsing, performance, licensing, dependencies
Last editorial update2h ago50m ago
WebsiteVisit →Visit →

What is httr2?

httr2 is growing production concerns: tracing, throttling and token hygiene.

httr2 is the tidyverse's modern HTTP client and the designated successor to httr. Recent releases have moved past request-building ergonomics into operational concerns — OpenTelemetry traces for every request, throttling that behaves correctly across repeated calls, and a fix for OAuth token caches that were never actually being pruned.

Read the full httr2 trajectory →

What is xml2?

xml2 relicensed to MIT, then moved its hot accessors from S3 into C

xml2 is the libxml2 binding under most R HTML and XML work, including rvest. Its release cadence is set by libxml2 versions and R CMD check, but two of the last six matter on their own: the 1.3.3 MIT relicense and the 1.3.6 dispatch rewrite that pushed the common accessors into C and dropped three dependencies.

Read the full xml2 trajectory →

httr2 vs xml2: editorial side-by-side

H
httr2
DEVOPS
2.5

httr2 is growing production concerns: tracing, throttling and token hygiene.

◆ Current state

httr2 is the tidyverse's modern HTTP client and the designated successor to httr. Recent releases have moved past request-building ergonomics into operational concerns — OpenTelemetry traces for every request, throttling that behaves correctly across repeated calls, and a fix for OAuth token caches that were never actually being pruned.

◆ Where it's heading

The package is maturing into infrastructure for long-running R services rather than interactive scripts. The 1.2.0 lifecycle purge removed deprecated streaming and mocking APIs in favour of a connection-based model, and debugging affordances like httr2_translate() point at users who need to reproduce a failing request outside R.

◆ Prediction

Expect further observability and credential-handling work, with the rlang-driven cache hash change in 1.3.0 likely to surface follow-up issues as existing caches silently invalidate.

X
xml2
DEVOPS
0.0

xml2 relicensed to MIT, then moved its hot accessors from S3 into C

◆ Current state

xml2 is the libxml2 binding under most R HTML and XML work, including rvest. Its release cadence is set by libxml2 versions and R CMD check, but two of the last six matter on their own: the 1.3.3 MIT relicense and the 1.3.6 dispatch rewrite that pushed the common accessors into C and dropped three dependencies.

◆ Where it's heading

This is infrastructure maintenance in the strict sense - most releases exist because the toolchain moved, not because the package did. Where the maintainers do choose the work, it goes to performance and dependency reduction rather than new API, and the surface has been essentially stable since 1.3.0.

◆ Prediction

Expect the next releases to track libxml2 compatibility and R-devel format-string warnings; new API is unlikely beyond occasional XPath accessors in the style of xml_find_int().

Alternatives to httr2 and xml2

Other DevOps products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either httr2 or xml2.

See all httr2 alternatives → · See all xml2 alternatives →

Recent activity from httr2 and xml2

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 1mo agohttr2httr2 1.3.0 fixes OAuth token caches that never expired
  2. 1mo agohttr2httr2 1.2.3 translates requests into curl commands
  3. 8mo agohttr2httr2 1.2.2 emits OpenTelemetry traces for every request
  4. 1y agohttr2httr2 1.2.1 stops escaping colons in paths
  5. 1y agohttr2httr2 1.2.0 removes deprecated mocking and streaming APIs
  6. 1y agohttr2httr2 1.1.2 fixes AWS request signing and header checks
  7. 2y agoxml2Accessors dispatch in C; glue, withr and lifecycle dropped
  8. 3y agoxml2Small xml_find_all() speedup and check fixes
  9. 3y agoxml2R CMD check fixes and a Windows libxml2 bump
  10. 4y agoxml2Relicensed to MIT, with Hadley Wickham back as maintainer
  11. 6y agoxml2Rejects multi-element strings; fixes a raw-input regression
  12. 6y agoxml2Restores reading HTML with non-ASCII encodings

Frequently asked questions

What is the difference between httr2 and xml2?

They serve adjacent needs but don't currently overlap on shipped themes. httr2 is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is httr2 better than xml2?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. httr2 is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other DevOps products to evaluate alongside.

What are the best alternatives to httr2?

Top httr2 alternatives in DevOps are ranked by recent ship velocity. Browse the "httr2 alternatives" section above for the current picks, or visit /alternatives/httr2 for the full list with editorial commentary on each.

What are the best alternatives to xml2?

Top xml2 alternatives in DevOps are ranked by recent ship velocity. Browse the "xml2 alternatives" section above for the current picks, or visit /alternatives/xml2 for the full list with editorial commentary on each.