postmanlabs / postmanlabs/postman-code-generators
curl: Include option -i (--include)
Open
@umeshp7 is already working on this.
Since Oct 11, 2021.
codegen
enhancement
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 381
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
Some APIs return important information in the headers, such as request ID. When I use the curl codegen I find myself constantly adding -i/--include option manually.
Describe the solution you'd like
Add an option Include headers to settings for curl. It would add option -i/--include to the curl command generated. It would be similar to the current options Use Silent Mode and Follow redirects which add -s/--silent and -L/--location respectively.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.