Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: add deprecated function http.createClient()
Browse files Browse the repository at this point in the history
Appears in a lot of old code and core tests. Documented to show it
is deprecated.

Closes #1613.
  • Loading branch information
shama authored and bnoordhuis committed Apr 23, 2012
1 parent ea50ebd commit 491c8d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 491c8d9

Please sign in to comment.