doc: remove `agent.request()` call in example

The `Agent#request()` function was removed in
f3189ace6b, so don't
use it in the documentation example. The function
wasn't documented in the first place.
pull/41362/head
Nathan Rajlich 2014-03-25 10:02:42 -10:00
parent 9f23fe1141
commit 69b8279d4b
1 changed files with 2 additions and 1 deletions

View File

@ -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