From 69b8279d4bb416661394cbc224c4c64cdadd941f Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 25 Mar 2014 10:02:42 -1000 Subject: [PATCH] doc: remove `agent.request()` call in example The `Agent#request()` function was removed in f3189ace6b5e31a874df421ac2f74da0e77cb14d, so don't use it in the documentation example. The function wasn't documented in the first place. --- doc/api/http.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 6f748b75b5e..ee877b304a5 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -619,7 +619,8 @@ To configure any of them, you must create your own `Agent` object. ```javascript var http = require('http'); var keepAliveAgent = new http.Agent({ keepAlive: true }); -keepAliveAgent.request(options, onResponseCallback); +options.agent = keepAliveAgent; +http.request(options, onResponseCallback); ``` ### agent.maxSockets