Skip to content

Commit ec694a8

Browse files
committed
doc: clarify http.get data consumption requirement
With the previous wording, I read this sentence as meaning, "you _must_ use the http.get callback mechanism and cannot register a listener on the returned http.ClientRequest object." This is obviously not the intention, so adjust the sentence to make this clearer.
1 parent f912080 commit ec694a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,8 @@ changes:
16931693
Since most requests are GET requests without bodies, Node.js provides this
16941694
convenience method. The only difference between this method and
16951695
[`http.request()`][] is that it sets the method to GET and calls `req.end()`
1696-
automatically. Note that response data must be consumed in the callback
1697-
for reasons stated in [`http.ClientRequest`][] section.
1696+
automatically. Note that the callback must take care to consume the response
1697+
data for reasons stated in [`http.ClientRequest`][] section.
16981698

16991699
The `callback` is invoked with a single argument that is an instance of
17001700
[`http.IncomingMessage`][]

0 commit comments

Comments
 (0)