@fmal/http-service
Version:
A HTTP service - orignally @cerebral/http
13 lines (10 loc) • 315 B
JavaScript
import { processResponse } from '../utils';
function httpPutFactory(url, body = {}, options) {
return function httpPut({ http, path, resolve }) {
return processResponse(
http.put(resolve.value(url), resolve.value(body), resolve.value(options)),
path
);
};
}
export default httpPutFactory;