Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add response options to json and redirect helper bindings #7

Open
tom-sherman opened this issue Dec 20, 2021 · 1 comment
Open

Add response options to json and redirect helper bindings #7

tom-sherman opened this issue Dec 20, 2021 · 1 comment

Comments

@tom-sherman
Copy link
Owner

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
@tom-sherman
Copy link
Owner Author

This is currently blocked by the lack of ResponseInit.make and/or Response.make functions in rescript-webapi

Raised here TheSpyder/rescript-webapi#63

tom-sherman referenced this issue in tom-sherman/rescript-remix-template Dec 20, 2021
Partial solution for #8
@tom-sherman tom-sherman changed the title Dec 20, 2021
@tom-sherman tom-sherman transferred this issue from tom-sherman/rescript-remix-template Jan 8, 2022
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

No branches or pull requests

1 participant