mirror of https://github.com/nodejs/node.git
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
parent
9f23fe1141
commit
69b8279d4b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue