code: function getBody(req) {
    return new Promise((resolve, reject) => {
      let data = '';
      req
        .on('data', (chunk) => {
          data += chunk;
        })
        .on('end', () => {
          resolve(data);
        })
        .on('error', reject);
    });
  }
docs: import querystring from 'querystring';