@fmal/http-service
Version:
A HTTP service - orignally @cerebral/http
16 lines (13 loc) • 405 B
JavaScript
import { processResponse } from '../utils';
function httpPostFactory(url, body, options) {
if (body === void 0) {
body = {};
}
return function httpPost(_ref) {
var http = _ref.http,
path = _ref.path,
resolve = _ref.resolve;
return processResponse(http.post(resolve.value(url), resolve.value(body), resolve.value(options)), path);
};
}
export default httpPostFactory;