Browse Source

doc: Document http.request protocol option

Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25591
v0.12-staging
Ville Skyttä 10 years ago
committed by James M Snell
parent
commit
16f547600a
  1. 1
      doc/api/http.markdown

1
doc/api/http.markdown

@ -457,6 +457,7 @@ automatically parsed with [url.parse()][].
Options:
- `protocol`: Protocol to use. Defaults to `'http:'`.
- `host`: A domain name or IP address of the server to issue the request to.
Defaults to `'localhost'`.
- `hostname`: To support `url.parse()` `hostname` is preferred over `host`

Loading…
Cancel
Save