You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -33,33 +33,33 @@ This will install `http-server` globally so that it may be run from the command
33
33
34
34
`-a` Address to use (defaults to 0.0.0.0)
35
35
36
-
`-d` Show directory listings (defaults to 'True')
36
+
`-d` Show directory listings (defaults to `true`)
37
37
38
-
`-i` Display autoIndex (defaults to 'True')
38
+
`-i` Display autoIndex (defaults to `true`)
39
39
40
-
`-g` or `--gzip` When enabled (defaults to 'False') it will serve `./public/some-file.js.gz` in place of `./public/some-file.js` when a gzipped version of the file exists and the request accepts gzip encoding.
40
+
`-g` or `--gzip` When enabled (defaults to `false`) it will serve `./public/some-file.js.gz` in place of `./public/some-file.js` when a gzipped version of the file exists and the request accepts gzip encoding.
41
41
42
-
`-e` or `--ext` Default file extension if none supplied (defaults to 'html')
42
+
`-e` or `--ext` Default file extension if none supplied (defaults to `html`)
43
43
44
44
`-s` or `--silent` Suppress log messages from output
45
45
46
46
`--cors` Enable CORS via the `Access-Control-Allow-Origin` header
47
47
48
48
`-o` Open browser window after starting the server
49
49
50
-
`-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds (defaults to '3600'). To disable caching, use -c-1.
50
+
`-c` Set cache time (in seconds) for cache-control max-age header, e.g. `-c10` for 10 seconds (defaults to `3600`). To disable caching, use `-c-1`.
51
51
52
52
`-U` or `--utc` Use UTC time format in log messages.
53
53
54
54
`-P` or `--proxy` Proxies all requests which can't be resolved locally to the given url. e.g.: -P http://someurl.com
55
55
56
56
`-S` or `--ssl` Enable https.
57
57
58
-
`-C` or `--cert` Path to ssl cert file (default: cert.pem).
58
+
`-C` or `--cert` Path to ssl cert file (default: `cert.pem`).
59
59
60
-
`-K` or `--key` Path to ssl key file (default: key.pem).
60
+
`-K` or `--key` Path to ssl key file (default: `key.pem`).
61
61
62
-
`-r` or `--robots` Provide a /robots.txt (whose content defaults to 'User-agent: *\nDisallow: /')
62
+
`-r` or `--robots` Provide a /robots.txt (whose content defaults to `User-agent: *\nDisallow: /`)
0 commit comments