If only 1 piece of data is written, data can be a FormData, Blob, or
ArrayBuffer instance. Otherwise, data should be a string or a buffer.
req.end(data)
Close and send the request body, optionally with additional data to append.
response methods
res.getHeader(key)
Return an http header, if set. key is case-insensitive.
response attributes
res.statusCode, the numeric http response code
res.headers, an object with all lowercase keys
compatibility
This module has been tested and works with:
Internet Explorer 5.5, 6, 7, 8, 9
Firefox 3.5
Chrome 7.0
Opera 10.6
Safari 5.0
Multipart streaming responses are buffered in all versions of Internet Explorer
and are somewhat buffered in Opera. In all the other browsers you get a nice
unbuffered stream of "data" events when you send down a content-type of
multipart/octet-stream or similar.