GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: Improve doc for Http2 headers object · nodejs/node@4647f61

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http2.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+17Lines changed: 17 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2118,6 +2118,23 @@ means that normal JavaScript object methods such as
21182118
`Object.prototype.toString()` and `Object.prototype.hasOwnProperty()` will
21192119
not work.
21202120

2121+
For incoming headers:
2122+
* The `:status` header is converted to `number`.
2123+
* Duplicates of `:status`, `:method`, `:authority`, `:scheme`, `:path`,
2124+
`age`, `authorization`, `access-control-allow-credentials`,
2125+
`access-control-max-age`, `access-control-request-method`, `content-encoding`,
2126+
`content-language`, `content-length`, `content-location`, `content-md5`,
2127+
`content-range`, `content-type`, `date`, `dnt`, `etag`, `expires`, `from`,
2128+
`if-match`, `if-modified-since`, `if-none-match`, `if-range`,
2129+
`if-unmodified-since`, `last-modified`, `location`, `max-forwards`,
2130+
`proxy-authorization`, `range`, `referer`,`retry-after`, `tk`,
2131+
`upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are
2132+
discarded.
2133+
* `set-cookie` is a string if present once or an array in case duplicates
2134+
are present.
2135+
* `cookie`: the values are joined together with '; '.
2136+
* For all other headers, the values are joined together with ', '.
2137+
21212138
```js
21222139
const http2 = require('http2');
21232140
const server = http2.createServer();

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.