diff --git a/doc/api/http.md b/doc/api/http.md index 8ac1ed166103b0..31e4760083677d 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2863,6 +2863,9 @@ The request/response headers object. Key-value pairs of header names and values. Header names are lower-cased. +The object has a null prototype and should not be accessed using the `in` +operator. + ```js // Prints something like: // @@ -2900,6 +2903,9 @@ added: Similar to [`message.headers`][], but there is no join logic and the values are always arrays of strings, even for headers received just once. +The object has a null prototype and should not be accessed using the `in` +operator. + ```js // Prints something like: // @@ -3086,6 +3092,9 @@ added: v0.3.0 The request/response trailers object. Only populated at the `'end'` event. +The object has a null prototype and should not be accessed using the `in` +operator. + ### `message.trailersDistinct`