|
@ -394,11 +394,12 @@ Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## http.Agent |
|
|
## http.Agent |
|
|
|
|
|
## http.getAgent(host, port) |
|
|
|
|
|
|
|
|
`http.request()` uses a special `Agent` for managing multiple connections to |
|
|
`http.request()` uses a special `Agent` for managing multiple connections to |
|
|
an HTTP server. Normally `Agent` instances should not be exposed to user |
|
|
an HTTP server. Normally `Agent` instances should not be exposed to user |
|
|
code, however in certain situations it's useful to check the status of the |
|
|
code, however in certain situations it's useful to check the status of the |
|
|
agent. |
|
|
agent. The `http.getAgent()` function allows you to access the agents. |
|
|
|
|
|
|
|
|
### Event: 'upgrade' |
|
|
### Event: 'upgrade' |
|
|
|
|
|
|
|
|