From 491c8d92b857eea32c4f209cb1563169ef0b70ec Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Sun, 22 Apr 2012 21:37:37 -0700 Subject: [PATCH] doc: add deprecated function http.createClient() Appears in a lot of old code and core tests. Documented to show it is deprecated. Closes #1613. --- doc/api/http.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 260d22d..d7f4352 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -32,6 +32,12 @@ Returns a new web server object. The `requestListener` is a function which is automatically 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 This is an `EventEmitter` with the following events: -- 2.7.4