Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add simple example

  • Loading branch information...
commit 50b06336f956b32adb38e826bf36a7c3ca65627b 1 parent 1a78b24
@tj tj authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 examples/simple-get.js
View
13 examples/simple-get.js
@@ -0,0 +1,13 @@
+
+/**
+ * Module dependencies.
+ */
+
+var request = require('..');
+
+var url = 'https://gist.github.com/visionmedia/9fff5b23c1bf1791c349/raw/3e588e0c4f762f15538cdaf9882df06b3f5b3db6/works.js';
+
+request.get(url, function(err, res){
+ if (err) throw err;
+ console.log(res.text);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.