UNPKG

@fmal/http-service

Version:

A HTTP service - orignally @cerebral/http

16 lines (13 loc) 401 B
import { processResponse } from '../utils'; function httpPutFactory(url, body, options) { if (body === void 0) { body = {}; } return function httpPut(_ref) { var http = _ref.http, path = _ref.path, resolve = _ref.resolve; return processResponse(http.put(resolve.value(url), resolve.value(body), resolve.value(options)), path); }; } export default httpPutFactory;