Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit c413c2b

Browse files
committed
Document http.request string-type overload
1 parent db3c3d2 commit c413c2b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doc/api/http.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,9 @@ followed by `response.end()`.
425425
## http.request(options, callback)
426426

427427
Node maintains several connections per server to make HTTP requests.
428-
This function allows one to transparently issue requests. `options` align
429-
with [url.parse()](url.html#url.parse).
428+
This function allows one to transparently issue requests.
429+
430+
`options` can be an object or a string. If `options` is a string, it is automatically parsed with [url.parse()](url.html#url.parse).
430431

431432
Options:
432433

0 commit comments

Comments
 (0)