Skip to content

feat: httr2_translate() #795

@JosiahParry

Description

@JosiahParry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions