Context method to send request to self. #1675
nicksrandall
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
I went ahead and submitted a PR: #1676 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @nicksrandall, First, please create an issue as a feature request for this. After it's discussed there, if we agree to add the feature, then you can create the PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes in a view route, I want to call an another route handler to get data. It would be awesome if Hono has this built in.
Runtimes like Cloudflare workers do not allow workers to "fetch" themselves over the network so this would be a nice work around that would allow hono to skip the network entirely and just call itself.
Proposed API
I'd be happy to send a PR if maintainers are open to this change.
Beta Was this translation helpful? Give feedback.
All reactions