Go to file
2024-11-23 13:50:18 -06:00
bun fix: spago 2024-06-10 12:16:33 -05:00
src fix: form bug 2024-11-23 13:49:36 -06:00
test fix: form bug 2024-11-23 13:49:36 -06:00
.gitignore Initial commit 2023-11-18 21:19:48 +00:00
.prettierrc.cjs Initial commit 2023-11-18 21:19:48 +00:00
.spec-results fix: form bug 2024-11-23 13:49:36 -06:00
.tool-versions feat: add HEAD 2024-04-21 17:17:28 -05:00
bun.lockb feat: response.node stream, buffer 2024-04-21 18:00:07 -05:00
jsconfig.json Initial commit 2023-11-18 21:19:48 +00:00
package.json fix: spago 2024-06-10 12:16:33 -05:00
README.md docs: readme 2024-06-10 12:23:09 -05:00
spago.lock fix: form bug 2024-11-23 13:49:36 -06:00
spago.yaml chore: prep v1.1.0 2024-11-23 13:50:18 -06:00

purescript-ezfetch

High-level bindings to the native fetch API

Effect.Aff.HTTP

The main entry point is Effect.Aff.HTTP.fetch:

fetch <method> <url> <options>
  • <method> is Effect.Aff.HTTP.Request.Method:

    data Method
      = GET
      | PUT
      | POST
      | DELETE
      | PATCH
      | HEAD
    
  • <url> is Data.URL.URL (from url-immutable)

  • <options> is a partial record of:

    type OptionalFields =
      ( body :: Body
      , headers :: Headers
      , credentials :: Credentials
      )