react-http-fetch
Version:
An http library for React JS built on top of native JS fetch
8 lines (7 loc) • 345 B
JavaScript
import { useHttpRequest } from './use-http-request';
import { HttpMethod } from '../enum';
import { useOverridedParamsByMethod } from './use-overrided-params-by-method';
export var useHttpDelete = function (params) {
var overridedParams = useOverridedParamsByMethod(params, HttpMethod.Delete);
return useHttpRequest(overridedParams);
};