code: function general (jar, url, inputs, events, customOpt, body) {
    for (var input in events) {
      inputs[input] = events[input];
    }
    var httpOpt = {
      url: url,
      options: {
        resolveWithFullResponse: true,
        method: 'POST',
        form: inputs,
        jar: jar
      }
    };
    if (customOpt) {
      if (customOpt.url) {
        delete customOpt.url;
      }
      Object.assign(httpOpt.options, customOpt);
    }
    return http(httpOpt).then(function (res) {
      return {
        res: res,
        body: body
      };
    });
  }
docs: Define