Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add curl Command Property to Response #8

Open
halforbit opened this issue Jun 29, 2023 · 0 comments
Open

Add curl Command Property to Response #8

halforbit opened this issue Jun 29, 2023 · 0 comments
Assignees

Comments

@halforbit
Copy link
Owner

halforbit commented Jun 29, 2023

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.

@halforbit halforbit self-assigned this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant