Skip to content

Commit

Permalink
Adding proxy to docs, don't know why this wasn't already in.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Aug 12, 2011
1 parent 8515a51 commit c63e6e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ The first argument is an options object. The only required option is uri, all ot
* `pool` - A hash object containing the agents for these requests. If omitted this request will use the global pool which is set to node's default maxSockets.
* `pool.maxSockets` - Integer containing the maximum amount of sockets in the pool.
* `timeout` - Integer containing the number of milliseconds to wait for a request to respond before aborting the request
* `proxy` - An HTTP proxy to be used. Support proxy Auth with Basic Auth the same way it's supported with the `url` parameter by embedding the auth info in the uri.

The callback argument gets 3 arguments. The first is an error when applicable (usually from the http.Client option not the http.ClientRequest object). The second in an http.ClientResponse object. The third is the response body buffer.

Expand Down

0 comments on commit c63e6e9

Please sign in to comment.