feat: add rawHeaders to IncomingMessage (#31853)

* Add response.rawHeaders to docs for IncomingMessage

* Remove trailing spaces

* Implement raw headers, add tests

* Fix lint issues

* Add example from NodeJS docs

* Fix lint issue in doc example

* Add missing #
This commit is contained in:
Matthew Rayermann 2022-01-24 08:46:15 -08:00 committed by GitHub
parent d1b48c0636
commit d26d337bb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 179 additions and 11 deletions

View file

@ -40,7 +40,7 @@ struct Converter<network::mojom::HttpRawHeaderPairPtr> {
v8::Isolate* isolate,
const network::mojom::HttpRawHeaderPairPtr& pair) {
gin_helper::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
dict.Set("key", base::ToLowerASCII(pair->key));
dict.Set("key", pair->key);
dict.Set("value", pair->value);
return dict.GetHandle();
}