mirror of https://github.com/nodejs/node.git
parent
5208abe723
commit
7097eca5a7
|
@ -393,6 +393,10 @@ Options:
|
||||||
- `path`: Request path. Should include query string and fragments if any.
|
- `path`: Request path. Should include query string and fragments if any.
|
||||||
E.G. `'/index.html?page=12'`
|
E.G. `'/index.html?page=12'`
|
||||||
- `headers`: An object containing request headers.
|
- `headers`: An object containing request headers.
|
||||||
|
- `agent`: Controls `Agent` behavior. Possible values:
|
||||||
|
- `undefined` (default): use default `Agent` for this host and port.
|
||||||
|
- `Agent` object: explicitly use the passed in `Agent`.
|
||||||
|
- `false`: explicitly generate a new `Agent` for this host and port. `Agent` will not be re-used.
|
||||||
|
|
||||||
`http.request()` returns an instance of the `http.ClientRequest`
|
`http.request()` returns an instance of the `http.ClientRequest`
|
||||||
class. The `ClientRequest` instance is a writable stream. If one needs to
|
class. The `ClientRequest` instance is a writable stream. If one needs to
|
||||||
|
|
Loading…
Reference in New Issue