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

Commit 6e0a8bb

Browse files
committed
Change http.get example to use string overload shorthand
1 parent c413c2b commit 6e0a8bb

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

doc/api/http.markdown

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,7 @@ that it sets the method to GET and calls `req.end()` automatically.
512512

513513
Example:
514514

515-
var options = {
516-
host: 'www.google.com',
517-
port: 80,
518-
path: '/index.html'
519-
};
520-
521-
http.get(options, function(res) {
515+
http.get("http://www.google.com/index.html", function(res) {
522516
console.log("Got response: " + res.statusCode);
523517
}).on('error', function(e) {
524518
console.log("Got error: " + e.message);

0 commit comments

Comments
 (0)