Skip to content

Commit 491c8d9

Browse files
shamabnoordhuis
authored andcommitted
doc: add deprecated function http.createClient()
Appears in a lot of old code and core tests. Documented to show it is deprecated. Closes #1613.
1 parent ea50ebd commit 491c8d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

doc/api/http.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Returns a new web server object.
3232
The `requestListener` is a function which is automatically
3333
added to the `'request'` event.
3434

35+
## http.createClient([port], [host])
36+
37+
This function is **deprecated**; please use
38+
[http.request()](#http_http_request_options_callback) instead. Constructs a new
39+
HTTP client. `port` and `host` refer to the server to be connected to.
40+
3541
## Class: http.Server
3642

3743
This is an `EventEmitter` with the following events:

0 commit comments

Comments
 (0)