Skip to content

Add ToRequestBody Blob instance#19

Open
i-am-the-slime wants to merge 1 commit into
mainfrom
add-blob-instance
Open

Add ToRequestBody Blob instance#19
i-am-the-slime wants to merge 1 commit into
mainfrom
add-blob-instance

Conversation

@i-am-the-slime
Copy link
Copy Markdown
Member

Summary

Adds a ToRequestBody Blob instance so that fetch url { body: someBlob } works without manually coercing through fromArrayBuffer/etc.

Depends on the corresponding `fromBlob` addition in purescript-js-fetch.

Test plan

  • No new tests — single instance mirroring the surrounding ones.

Lets fetch `body: someBlob` work without coercing through one of the
existing constructors. Pairs with the corresponding `fromBlob` in
purescript-js-fetch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant