Skip to content

Add curl Command Property to Response  #8

@halforbit

Description

@halforbit

curl has a concise and widely adopted format for describing web requests. Not only can a curl command be run at the command prompt, but Postman allows importing curl commands for a rich experience.

If we could furnish developers with a curl command that precisely describes their request, they could easily reproduce the request with the tool of their choice.

Let's add a property to the Response type for retrieving a curl command.

This feature might need to be opt-in, since if there is a request body we will need to retain it fully in memory in some form to be able to include its content in the curl command.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions