httr2 icon indicating copy to clipboard operation
httr2 copied to clipboard

Export `httr2:::url_modify()`

Open burgerga opened this issue 1 year ago • 1 comments

TLDR: httr::modify_url() is exported, but httr2:::url_modify() not; please export this useful function


I'm wrapping an API and upon successful POST the API unfortunately only returns a document ID and not the full URL, so to print the full URL I have to construct it by appending this document ID to the base URL. So I'm looking for a function like httr2::req_url_path() that works on a URL instead of a request. Previously, I used httr::modify_url() but the httr2 version httr2:::url_modify() is not exported, would it be possible to export this function in httr2 as well?

burgerga avatar Mar 27 '24 21:03 burgerga

Yeah, that seems reasonable!

hadley avatar Apr 01 '24 17:04 hadley