Comments (3)
I wrote dirty codes supporting Deno. It has seemed to work well. So firstly, I tried to measure benchmark scores vs oak. Fortunately, Hono is faster than oak!
I use code like this:
const hono = new Hono()
hono.get('/user', (c) => c.text('User'))
hono.get('/user/comments', (c) => c.text('User Comments'))
hono.get('/user/avatar', (c) => c.text('User Avatar'))
hono.get('/user/lookup/email/:address', (c) => c.text('User Lookup Email Address'))
hono.get('/event/:id', (c) => c.text('Event'))
hono.get('/event/:id/comments', (c) => c.text('Event Comments'))
hono.post('/event/:id/comments', (c) => c.text('POST Event Comments'))
hono.post('/status', (c) => c.text('Status'))
hono.get('/very/deeply/nested/route/hello/there', (c) => c.text('Very Deeply Nested Route'))
hono.get('/user/lookup/username/:username', (c) => {
return c.text(`Hello ${c.req.param('username')}`)
})
from hono.
Maybe, we can use Denoify. It looks good.
from hono.
Works on both Worker and Deno: https://github.com/yusukebe/worker-and-deno
from hono.
Related Issues (20)
- Suggestion for Improving Test Coverage of utils/buffer.ts HOT 2
- RPC client does not pass extra arguments, like headers, when using a websocket HOT 3
- upgradeWebSocket helper doesn't support Deno-specific options HOT 4
- Can't deploy the basic cloudflare pages example HOT 1
- `path` is not inferred when chaining after `use`
- Able to use `upgradeWebSocket` like a stream HOT 3
- Codecov actions throw error. HOT 3
- createBunWebSocket and Hono error. `server.upgrade` is not a function? HOT 4
- Cloudflare Pages Middleware HOT 2
- Codecov actions throw error (2) HOT 1
- Type for `output` in hono client route getting dropped HOT 2
- `outputFormat` supports Response HOT 1
- Development dependencies update HOT 1
- Unable to add middleware after creation: Can not add a route since the matcher is already built. HOT 10
- `c.req.valid` does not work in route without path HOT 7
- Abort does not work with bun HOT 4
- Handling empty slash slots in URL (Double slash) HOT 4
- Built-in validator formData parsing HOT 4
- `factory.createApp()` will initApp every time it get called and cause some middleware error HOT 3
- hono/compress throws TypeError: Can't modify immutable headers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hono.