The "URL manipulation" and "Helpers" sections of http.R can mostly be offloaded to httr2, it appears, even when using the libcurl backend. That should also allow some refactoring and simplification of some requests, like those that manually construct query strings.