mirror of
https://git.coolaj86.com/coolaj86/request.js
synced 2025-04-19 22:00:38 +00:00
580 B
580 B
µRequest - Minimalist HTTP client
A minimal drop-in replacement for request with 0 dependenciese.
Super simple to use
µRequest is designed to be a minimal drop-in replacement for request.
var request = require('urequest');
request('http://www.google.com', function (error, response, body) {
console.log('error:', error); // Print the error if one occurred
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
console.log('body:', body); // Print the HTML for the Google homepage.
});