purescript-fetch/src/HTTP.js
2023-11-18 16:25:25 -06:00

4 lines
260 B
JavaScript

/** @type {(_: string) => (_: string) => (_: Record<string, string>) => (_: null | string | FormData) => () => Promise<Response>} */
export const fetchImpl = url => method => headers => body => () =>
fetch(url, { redirect: 'manual', body, method, headers })