Skip to content

Instantly share code, notes, and snippets.

View ejnshtein's full-sized avatar
🦍
Oug Developer

岡部 倫太郎 ejnshtein

🦍
Oug Developer
View GitHub Profile
// docs: https://nodejs.org/dist/latest-v10.x/docs/api/https.html#https_https_request_url_options_callback
// all methods working, but post only with x-form-urlencoded. return promise with resolved object on line 64.
// extra options parameters: json=[bool], params=[object]
const querystring = require('querystring')
const https = require('https')
const http = require('http')
const cleanObject = (object, filterKeys) => Object
.keys(object)
.reduce((acc, key) => {