@@ -988,7 +988,7 @@ The `'trailers'` event is emitted when a block of headers associated with
988
988
trailing header fields is received. The listener callback is passed the
989
989
[ HTTP/2 Headers Object] [ ] and flags associated with the headers.
990
990
991
- Note that this event might not be emitted if ` http2stream.end() ` is called
991
+ This event might not be emitted if ` http2stream.end() ` is called
992
992
before trailers are received and the incoming data is not being read or
993
993
listened for.
994
994
@@ -1488,7 +1488,7 @@ requests.
1488
1488
1489
1489
The file descriptor is not closed when the stream is closed, so it will need
1490
1490
to be closed manually once it is no longer needed.
1491
- Note that using the same file descriptor concurrently for multiple streams
1491
+ Using the same file descriptor concurrently for multiple streams
1492
1492
is not supported and may result in data loss. Re-using a file descriptor
1493
1493
after a stream has finished is supported.
1494
1494
@@ -1669,7 +1669,7 @@ client should continue to send the request body, or generating an appropriate
1669
1669
HTTP response (e.g. 400 Bad Request) if the client should not continue to send
1670
1670
the request body.
1671
1671
1672
- Note that when this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
1672
+ When this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
1673
1673
not be emitted.
1674
1674
1675
1675
#### Event: 'request'
@@ -1680,7 +1680,7 @@ added: v8.4.0
1680
1680
* ` request ` {http2.Http2ServerRequest}
1681
1681
* ` response ` {http2.Http2ServerResponse}
1682
1682
1683
- Emitted each time there is a request. Note that there may be multiple requests
1683
+ Emitted each time there is a request. There may be multiple requests
1684
1684
per session. See the [ Compatibility API] [ ] .
1685
1685
1686
1686
#### Event: 'session'
@@ -1750,7 +1750,7 @@ added: v8.4.0
1750
1750
1751
1751
Stops the server from accepting new connections. See [ ` net.Server.close() ` ] [ ] .
1752
1752
1753
- Note that this is not analogous to restricting new requests since HTTP/2
1753
+ This is not analogous to restricting new requests since HTTP/2
1754
1754
connections are persistent. To achieve a similar graceful shutdown behavior,
1755
1755
consider also using [ ` http2session.close() ` ] on active sessions.
1756
1756
@@ -1805,7 +1805,7 @@ client should continue to send the request body, or generating an appropriate
1805
1805
HTTP response (e.g. 400 Bad Request) if the client should not continue to send
1806
1806
the request body.
1807
1807
1808
- Note that when this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
1808
+ When this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
1809
1809
not be emitted.
1810
1810
1811
1811
#### Event: 'request'
@@ -1816,7 +1816,7 @@ added: v8.4.0
1816
1816
* ` request ` {http2.Http2ServerRequest}
1817
1817
* ` response ` {http2.Http2ServerResponse}
1818
1818
1819
- Emitted each time there is a request. Note that there may be multiple requests
1819
+ Emitted each time there is a request. There may be multiple requests
1820
1820
per session. See the [ Compatibility API] [ ] .
1821
1821
1822
1822
#### Event: 'session'
@@ -1895,7 +1895,7 @@ added: v8.4.0
1895
1895
1896
1896
Stops the server from accepting new connections. See [ ` tls.Server.close() ` ] [ ] .
1897
1897
1898
- Note that this is not analogous to restricting new requests since HTTP/2
1898
+ This is not analogous to restricting new requests since HTTP/2
1899
1899
connections are persistent. To achieve a similar graceful shutdown behavior,
1900
1900
consider also using [ ` http2session.close() ` ] on active sessions.
1901
1901
@@ -2771,7 +2771,7 @@ added: v8.4.0
2771
2771
2772
2772
The raw request/response headers list exactly as they were received.
2773
2773
2774
- Note that the keys and values are in the same list. It is * not* a
2774
+ The keys and values are in the same list. It is * not* a
2775
2775
list of tuples. So, the even-numbered offsets are key values, and the
2776
2776
odd-numbered offsets are the associated values.
2777
2777
@@ -3035,7 +3035,7 @@ added: v8.4.0
3035
3035
* Returns: {string}
3036
3036
3037
3037
Reads out a header that has already been queued but not sent to the client.
3038
- Note that the name is case insensitive.
3038
+ The name is case- insensitive.
3039
3039
3040
3040
``` js
3041
3041
const contentType = response .getHeader (' content-type' );
@@ -3094,7 +3094,7 @@ added: v8.4.0
3094
3094
* Returns: {boolean}
3095
3095
3096
3096
Returns ` true ` if the header identified by ` name ` is currently set in the
3097
- outgoing headers. Note that the header name matching is case-insensitive.
3097
+ outgoing headers. The header name matching is case-insensitive.
3098
3098
3099
3099
``` js
3100
3100
const hasContentType = response .hasHeader (' content-type' );
@@ -3278,7 +3278,7 @@ it will switch to implicit header mode and flush the implicit headers.
3278
3278
This sends a chunk of the response body. This method may
3279
3279
be called multiple times to provide successive parts of the body.
3280
3280
3281
- Note that in the ` http ` module, the response body is omitted when the
3281
+ In the ` http ` module, the response body is omitted when the
3282
3282
request is a HEAD request. Similarly, the ` 204 ` and ` 304 ` responses
3283
3283
_ must not_ include a message body.
3284
3284
@@ -3341,12 +3341,12 @@ response.writeHead(200, {
3341
3341
' Content-Type' : ' text/plain' });
3342
3342
```
3343
3343
3344
- Note that Content-Length is given in bytes not characters. The
3344
+ ` Content-Length ` is given in bytes not characters. The
3345
3345
` Buffer.byteLength() ` API may be used to determine the number of bytes in a
3346
3346
given encoding. On outbound messages, Node.js does not check if Content-Length
3347
3347
and the length of the body being transmitted are equal or not. However, when
3348
3348
receiving messages, Node.js will automatically reject messages when the
3349
- Content-Length does not match the actual payload size.
3349
+ ` Content-Length ` does not match the actual payload size.
3350
3350
3351
3351
This method may be called at most one time on a message before
3352
3352
[ ` response.end() ` ] [ ] is called.
0 commit comments