Browse Source

Add note about sendBody buffering to docs

v0.7.4-release
Ryan 16 years ago
parent
commit
86051ca5d2
  1. 6
      website/api.txt

6
website/api.txt

@ -702,6 +702,12 @@ specifies how to encode it into a byte stream. By default the
+ +
Note: This is the raw HTTP body and has nothing to do with Note: This is the raw HTTP body and has nothing to do with
higher-level multi-part body encodings that may be used. higher-level multi-part body encodings that may be used.
+
The first time +sendBody+ is called, it will send the buffered header
information and the first body to the client. The second time
+sendBody+ is called, Node assumes you're going to be streaming data, and
sends that seperately. That is, the response is buffered up to the
first chunk of body.
+response.finish()+ :: +response.finish()+ ::

Loading…
Cancel
Save