H
Hono•4w ago
LukeZ

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
Libir
Libir•4w ago
you can achive this by a middleware. after your await cal you can do what ever you want.
LukeZ
LukeZOP•4w ago
thanks, I found a way ^^
ambergristle
ambergristle•4w ago
what's your solution?
LukeZ
LukeZOP•4w ago
it was a hussle because async fetch() and cf workers is a nightmare. I basically did this now as a "workaround".
blair
blair•4w ago
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.
LukeZ
LukeZOP•4w ago
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.
LukeZ
LukeZOP•4w ago
Upvote Engine - A Discord App
A Discord bot voting handler service.

Did you find this page helpful?