When a new TCP stream is established. `socket` is an object of type
`net.Socket`. Usually users will not want to access this event. The
- `stream` can also be accessed at `request.connection`.
+ `socket` can also be accessed at `request.connection`.
### Event: 'close'
works because the string `'hello world'` contains only single byte characters.
If the body contains higher coded characters then `Buffer.byteLength()`
should be used to determine the number of bytes in a given encoding.
+And Node does not check whether Content-Length and the length of the body
+which has been transmitted are equal or not.
### response.statusCode
response.statusCode = 404;
+After response header was sent to the client, this property indicates the
+status code which was sent out.
+
### response.setHeader(name, value)
Sets a single header value for implicit headers. If this header already exists
});
This is a `Writable Stream`.
+Note: Node does not check whether Content-Length and the length of the body
+which has been transmitted are equal or not.
This is an `EventEmitter` with the following events: