httr2 is an R package that helps you generate and perform HTTP requests then process the responses. In this talk, I'll introduce you to httr2 and the basics of HTTP, so you can learn what powers so much of the modern internet, and how you can work with it from R.
httr2 is the successor to httr and has been under development for around two years. Compared to httr, httr2 has an explicit request object which leads to a more familiar interface where you can iteratively build up complex requests with the pipe. There's no need to stop using httr, as we'll continue to maintain it for many years to come, but for new projects, I'd highly recommend giving httr2 a shot.
Presented at:
- Seattle useR meetup, Seattle, December 2023.
- NICAR, Baltimore, March 2024.