UNPKG

rod

Version:

rod is a simple http transfer agent that supports https/gzip/deflate and follows redirects, it also can run in a fiber.

10 lines (9 loc) 228 B
'use strict'; var rod = require('./../index'); rod('http://0x4139.com', function (err, res) { if (err) { throw err } console.log(res.statusCode); // 200 res.pipe(process.stdout); // `res` is a stream });