Pass the Hono request object into agent handlers #55
Replies: 2 comments
-
|
+1 on passing request context, but i would be careful about making the Hono request object the public contract too early. maybe the portable layer should expose a standard request shape instead:
that gives auth enough surface area ( |
Beta Was this translation helpful? Give feedback.
-
|
Shipped in This deliberately exposes the standard Closing as resolved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today, agent handlers do not receive the underlying request object, which makes it harder to implement route-level auth or inspect request metadata such as headers. A useful improvement would be to pass the Hono request object into handlers so authors can consistently inspect things like Authorization headers, cookies, and other request details.
This assumes Flue uses Hono consistently across targets, including Node and Cloudflare, so the request object shape stays portable instead of becoming target-specific.
Beta Was this translation helpful? Give feedback.
All reactions