workers-res
Cloudflare Workers bindings for ReScript, WIP
Example
include Workers.Make({
type env = unit
let handlers = Workers.Handlers.make(
~fetch=(_, _, _) => {
"Hello, world!"
->Webapi.Fetch.Response.make
->Js.Promise.resolve
},
()
)
})
Features
- [x] Module format Worker bindings
- [x] KV
- [ ] R2
- [ ] DO
- [ ] HTMLRewriter
- [ ] ???