@@ -624,7 +624,7 @@ added: v1.6.0
624
624
* ` name ` {string}
625
625
* Returns: {any}
626
626
627
- Reads out a header on the request. Note that the name is case insensitive.
627
+ Reads out a header on the request. The name is case- insensitive.
628
628
The type of the return value depends on the arguments provided to
629
629
[ ` request.setHeader() ` ] [ ] .
630
630
@@ -810,7 +810,7 @@ client should continue to send the request body, or generating an appropriate
810
810
HTTP response (e.g. 400 Bad Request) if the client should not continue to send
811
811
the request body.
812
812
813
- Note that when this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
813
+ When this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
814
814
not be emitted.
815
815
816
816
### Event: 'checkExpectation'
@@ -825,7 +825,7 @@ Emitted each time a request with an HTTP `Expect` header is received, where the
825
825
value is not ` 100-continue ` . If this event is not listened for, the server will
826
826
automatically respond with a ` 417 Expectation Failed ` as appropriate.
827
827
828
- Note that when this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
828
+ When this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
829
829
not be emitted.
830
830
831
831
### Event: 'clientError'
@@ -939,7 +939,7 @@ added: v0.1.0
939
939
* ` request ` {http.IncomingMessage}
940
940
* ` response ` {http.ServerResponse}
941
941
942
- Emitted each time there is a request. Note that there may be multiple requests
942
+ Emitted each time there is a request. There may be multiple requests
943
943
per connection (in the case of HTTP Keep-Alive connections).
944
944
945
945
### Event: 'upgrade'
@@ -1118,7 +1118,7 @@ Trailers will **only** be emitted if chunked encoding is used for the
1118
1118
response; if it is not (e.g. if the request was HTTP/1.0), they will
1119
1119
be silently discarded.
1120
1120
1121
- Note that HTTP requires the ` Trailer ` header to be sent in order to
1121
+ HTTP requires the ` Trailer ` header to be sent in order to
1122
1122
emit trailers, with a list of the header fields in its value. E.g.,
1123
1123
1124
1124
``` js
@@ -1184,7 +1184,7 @@ added: v0.4.0
1184
1184
* Returns: {any}
1185
1185
1186
1186
Reads out a header that's already been queued but not sent to the client.
1187
- Note that the name is case insensitive. The type of the return value depends
1187
+ The name is case- insensitive. The type of the return value depends
1188
1188
on the arguments provided to [ ` response.setHeader() ` ] [ ] .
1189
1189
1190
1190
``` js
@@ -1252,7 +1252,7 @@ added: v7.7.0
1252
1252
* Returns: {boolean}
1253
1253
1254
1254
Returns ` true ` if the header identified by ` name ` is currently set in the
1255
- outgoing headers. Note that the header name matching is case-insensitive.
1255
+ outgoing headers. The header name matching is case-insensitive.
1256
1256
1257
1257
``` js
1258
1258
const hasContentType = response .hasHeader (' content-type' );
@@ -1435,7 +1435,7 @@ it will switch to implicit header mode and flush the implicit headers.
1435
1435
This sends a chunk of the response body. This method may
1436
1436
be called multiple times to provide successive parts of the body.
1437
1437
1438
- Note that in the ` http ` module, the response body is omitted when the
1438
+ In the ` http ` module, the response body is omitted when the
1439
1439
request is a HEAD request. Similarly, the ` 204 ` and ` 304 ` responses
1440
1440
_ must not_ include a message body.
1441
1441
@@ -1528,11 +1528,11 @@ const server = http.createServer((req, res) => {
1528
1528
});
1529
1529
```
1530
1530
1531
- Note that Content-Length is given in bytes not characters. The above example
1531
+ ` Content-Length ` is given in bytes not characters. The above example
1532
1532
works because the string ` 'hello world' ` contains only single byte characters.
1533
1533
If the body contains higher coded characters then ` Buffer.byteLength() `
1534
1534
should be used to determine the number of bytes in a given encoding.
1535
- And Node.js does not check whether Content-Length and the length of the body
1535
+ And Node.js does not check whether ` Content-Length ` and the length of the body
1536
1536
which has been transmitted are equal or not.
1537
1537
1538
1538
Attempting to set a header field name or value that contains invalid characters
@@ -1687,7 +1687,7 @@ added: v0.11.6
1687
1687
1688
1688
The raw request/response headers list exactly as they were received.
1689
1689
1690
- Note that the keys and values are in the same list. It is * not* a
1690
+ The keys and values are in the same list. It is * not* a
1691
1691
list of tuples. So, the even-numbered offsets are key values, and the
1692
1692
odd-numbered offsets are the associated values.
1693
1693
@@ -1908,7 +1908,7 @@ changes:
1908
1908
Since most requests are GET requests without bodies, Node.js provides this
1909
1909
convenience method. The only difference between this method and
1910
1910
[ ` http.request() ` ] [ ] is that it sets the method to GET and calls ` req.end() `
1911
- automatically. Note that the callback must take care to consume the response
1911
+ automatically. The callback must take care to consume the response
1912
1912
data for reasons stated in [ ` http.ClientRequest ` ] [ ] section.
1913
1913
1914
1914
The ` callback ` is invoked with a single argument that is an instance of
@@ -2083,7 +2083,7 @@ req.write(postData);
2083
2083
req .end ();
2084
2084
```
2085
2085
2086
- Note that in the example ` req.end() ` was called. With ` http.request() ` one
2086
+ In the example ` req.end() ` was called. With ` http.request() ` one
2087
2087
must always call ` req.end() ` to signify the end of the request -
2088
2088
even if there is no data being written to the request body.
2089
2089
@@ -2157,7 +2157,7 @@ will be emitted in the following order:
2157
2157
* ` 'end' ` on the ` res ` object
2158
2158
* ` 'close' ` on the ` res ` object
2159
2159
2160
- Note that setting the ` timeout ` option or using the ` setTimeout() ` function will
2160
+ Setting the ` timeout ` option or using the ` setTimeout() ` function will
2161
2161
not abort the request or do anything besides add a ` 'timeout' ` event.
2162
2162
2163
2163
[ `--http-server-default-timeout` ] : cli.html#cli_http_server_default_timeout_milliseconds
0 commit comments