Browse Source

doc: add deprecated function http.createClient()

Appears in a lot of old code and core tests. Documented to show it
is deprecated.

Closes #1613.
v0.9.1-release
Kyle Robinson Young 13 years ago
committed by Ben Noordhuis
parent
commit
491c8d92b8
  1. 6
      doc/api/http.markdown

6
doc/api/http.markdown

@ -32,6 +32,12 @@ Returns a new web server object.
The `requestListener` is a function which is automatically The `requestListener` is a function which is automatically
added to the `'request'` event. added to the `'request'` event.
## http.createClient([port], [host])
This function is **deprecated**; please use
[http.request()](#http_http_request_options_callback) instead. Constructs a new
HTTP client. `port` and `host` refer to the server to be connected to.
## Class: http.Server ## Class: http.Server
This is an `EventEmitter` with the following events: This is an `EventEmitter` with the following events:

Loading…
Cancel
Save