Skip to content

Commit 7f7d93a

Browse files
dxdxdtKernelDeimos
authored andcommitted
Doc -H/--header option
1 parent 51ee532 commit 7f7d93a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ with the provided Dockerfile.
6969
|`-e` or `--ext` |Default file extension if none supplied |`html` |
7070
|`-s` or `--silent` |Suppress log messages from output | |
7171
|`--cors` |Enable CORS via the `Access-Control-Allow-Origin` header | |
72+
|`-H` or `--header` |Add an extra response header (can be used several times) | |
7273
|`-o [path]` |Open browser window after starting the server. Optionally provide a URL path to open. e.g.: -o /other/dir/ | |
7374
|`-c` |Set cache time (in seconds) for cache-control max-age header, e.g. `-c10` for 10 seconds. To disable caching, use `-c-1`.|`3600` |
7475
|`-U` or `--utc` |Use UTC time format in log messages.| |

doc/http-server.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ Suppress log messages from output.
6262
Enable CORS via the "Access-Control-Allow-Origin" header.
6363
Optionally provide CORS headers list separated by commas.
6464

65+
.TP
66+
.BI \-H ", " \-\-header " " \fIHEADER\fR
67+
Add an extra response header (can be used several times)
68+
6569
.TP
6670
.BI \-o " " [\fIPATH\fR]
6771
Open default browser window after starting the server.

0 commit comments

Comments
 (0)