postmanlabs / postmanlabs/postman-code-generators

curl: Include option -i (--include)

Open
#494 0 comments 1 reaction 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.