Open tom-sherman opened 2 years ago
https://remix.run/docs/en/v1/api/remix#http-helpers
Example:
// We can bikeshed the `withResponse` suffix let jsonWithResponse: ({..}, Webapi.Fetch.ResponseInit.t) => Webapi.Fetch.Response.t let redirectWithResponse: (string, Webapi.Fetch.ResponseInit.t) => Webapi.Fetch.Response.t
This is currently blocked by the lack of ResponseInit.make and/or Response.make functions in rescript-webapi
ResponseInit.make
Response.make
Raised here https://github.com/tinymce/rescript-webapi/issues/63
https://remix.run/docs/en/v1/api/remix#http-helpers
Example: