related: #500
Very often I need to translate an httr2 command to a curl command to send to the software developers on my team (often java or js devs) to provide a reproducible example of a challenging / troublesome request that I am encountering in R.
While there is a curl_translate() to go from curl -> httr2 it would be exceptionally helpful if there were an httr2 -> curl translation function.
I could also imagine this being helpful for documentation purposes—e.g. having code tabs in a quarto doc one for httr2 and curl and the curl tab is populated by an httr2_translate() of the httr2_request object.
related: #500
Very often I need to translate an httr2 command to a curl command to send to the software developers on my team (often java or js devs) to provide a reproducible example of a challenging / troublesome request that I am encountering in R.
While there is a
curl_translate()to go from curl -> httr2 it would be exceptionally helpful if there were an httr2 -> curl translation function.I could also imagine this being helpful for documentation purposes—e.g. having code tabs in a quarto doc one for
httr2andcurland the curl tab is populated by anhttr2_translate()of thehttr2_requestobject.