followed by `response.end()`.
-## http.request(options, callback)
+## http.request(options, [callback])
Node maintains several connections per server to make HTTP requests.
This function allows one to transparently issue requests.
- `false`: opts out of connection pooling with an Agent, defaults request to
`Connection: close`.
+The optional `callback` parameter will be added as a one time listener for
+the ['response'][] event.
+
`http.request()` returns an instance of the [http.ClientRequest][]
class. The `ClientRequest` instance is a writable stream. If one needs to
upload a file with a POST request, then write to the `ClientRequest` object.
* Sending an Authorization header will override using the `auth` option
to compute basic authentication.
-## http.get(options, callback)
+## http.get(options, [callback])
Since most requests are GET requests without bodies, Node provides this
convenience method. The only difference between this method and `http.request()`
['checkContinue']: #http_event_checkcontinue
['listening']: net.html#net_event_listening
+['response']: #http_event_response
[Agent]: #http_class_http_agent
[Buffer]: buffer.html#buffer_buffer
[EventEmitter]: events.html#events_class_events_eventemitter