UNPKG

gohttp

Version:

http & https client for HTTP/1.1 and HTTP/2

13 lines (8 loc) 176 B
'use strict' module.exports = function (obj) { let qstr = []; for (let k in obj) { qstr.push(`${k}=${encodeURIComponent(obj[k])}`); } return qstr.join('&'); };