mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-16 12:08:29 -04:00
Add Prettier
This commit is contained in:
1 parent
0ad7607ac3
commit
4901f03041
467 files changed
+16125
-12289
No files matched your search
@@ -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