How to respond (acknowledge) a request without returning?
with express I can do
res.send() and continue logic afterwards. How do I do that wioth hono?7 Replies
you can achive this by a middleware. after your await cal you can do what ever you want.
thanks, I found a way ^^
what's your solution?
it was a hussle because async fetch() and cf workers is a nightmare.
I basically did this now as a "workaround".
you're building a discord httpOnly bot on hono? https://discord-hono.luis.fun/ this might be what you're looking for
Discord Hono
Discord Hono
Welcome to the Discord Hono. A lightweight, type-safe, and intuitive Discord bot framework inspired by Hono, optimized for serverless environments with zero dependencies.
already did, I ain't switching now 😂 Also, I did some things which are simply not possible with that package.
I didn't wanted to use hono initially because I didn't think my app would need more than two endpoints. I was wrong.
https://vote-handler.lukez.workers.dev/# is what I built
Upvote Engine - A Discord App
A Discord bot voting handler service.