react-refetch
Version:
A simple, declarative, and composable way to fetch data for React components.
17 lines (15 loc) • 375 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = buildRequest;
function buildRequest(mapping) {
return new mapping.Request(mapping.url, {
method: mapping.method,
headers: mapping.headers,
credentials: mapping.credentials,
redirect: mapping.redirect,
mode: mapping.mode,
body: mapping.body
});
}