UNPKG

cerebral-http-bugfix-1210

Version:
25 lines (18 loc) 582 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _utils = require('../utils'); function httpPostFactory(url) { var body = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var options = arguments[2]; function httpPost(_ref) { var http = _ref.http, path = _ref.path, resolve = _ref.resolve; return (0, _utils.processResponse)(http.post(resolve.value(url), resolve.value(body), options), path); } return httpPost; } exports.default = httpPostFactory; //# sourceMappingURL=httpPost.js.map