Skip to content

Commit b7aca49

Browse files
authored
Merge pull request #5 from joncloud/header-help
Documents header usage with help
2 parents f05fb3f + 75860a0 commit b7aca49

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Options:
4141
Content:
4242
Repeat as many content arguments to create content sent with the HTTP request. Alternatively pipe raw content send as the HTTP request content.
4343
<KEY>=<VALUE>
44+
45+
Headers:
46+
Repeat as many header arguments to assign headers for the HTTP request.
47+
<KEY>:<VALUE>
4448
```
4549

4650
For example `https put httpbin.org/put hello=world` will output:

src/https/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ void Help()
159159
writer.WriteLine("Repeat as many content arguments to create content sent with the HTTP request. Alternatively pipe raw content send as the HTTP request content.");
160160
writer.WriteLine(" <KEY>=<VALUE>");
161161
writer.WriteLine("");
162+
writer.WriteLine("Headers:");
163+
writer.WriteLine("Repeat as many header arguments to assign headers for the HTTP request.");
164+
writer.WriteLine(" <KEY>:<VALUE>");
165+
writer.WriteLine("");
162166

163167
writer.Flush();
164168
}

0 commit comments

Comments
 (0)