mirror of
https://github.com/Kong/insomnia.git
synced 2026-05-24 08:37:35 -04:00
Add Prettier
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
var http = require("https");
|
||||
var http = require('https');
|
||||
|
||||
var options = {
|
||||
"method": "GET",
|
||||
"hostname": "mockbin.com",
|
||||
"port": null,
|
||||
"path": "/har",
|
||||
"headers": {}
|
||||
method: 'GET',
|
||||
hostname: 'mockbin.com',
|
||||
port: null,
|
||||
path: '/har',
|
||||
headers: {}
|
||||
};
|
||||
|
||||
var req = http.request(options, function (res) {
|
||||
var req = http.request(options, function(res) {
|
||||
var chunks = [];
|
||||
|
||||
res.on("data", function (chunk) {
|
||||
res.on('data', function(chunk) {
|
||||
chunks.push(chunk);
|
||||
});
|
||||
|
||||
res.on("end", function () {
|
||||
res.on('end', function() {
|
||||
var body = Buffer.concat(chunks);
|
||||
console.log(body.toString());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user