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.
curlhas a concise and widely adopted format for describing web requests. Not only can acurlcommand be run at the command prompt, but Postman allows importingcurlcommands for a rich experience.If we could furnish developers with a
curlcommand that precisely describes their request, they could easily reproduce the request with the tool of their choice.Let's add a property to the
Responsetype for retrieving acurlcommand.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.