Comments (5)
This is definitely something I can and want to help with 🙂
from h3.
I believe this library is better maintained
https://www.npmjs.com/package/path-to-regexp
from h3.
This library looks nice: https://github.com/snd/url-pattern
from h3.
I believe this library is better maintained https://www.npmjs.com/package/path-to-regexp
According to Express.js documentation, this is exactly the library they use to define regex for path definitions.
They even link a tool for testing paths: http://forbeslindesay.github.io/express-route-tester/
from h3.
Adding initial router support with #64.
Why not go with the matching pattern as initially proposed: More thinking, route matching could be expensive if we lookup all middleware. Using a router we could also properly throw 404/405 error when route or method are not matching
from h3.
Related Issues (20)
- Event stream "onClosed" callback not firing on Nuxt HOT 1
- Mount websocket on same path as another handler
- Code block with a filename are gone HOT 2
- build failed after 36107e7be60cee9c3e0cc2f6ebcbce514d9d78e8 HOT 1
- Non-graceful error when proxy is offline
- get validated data with yup is failing HOT 1
- Add API in documentation
- `EventStream` convert `'\n'` to `''` HOT 1
- how to http proxy tunneling via proxyman / charles ?
- Add CORS HOT 4
- Can't use `myzod` HOT 2
- Can't readBody on a GET request
- Cookie formatting HOT 1
- I sent such a request to h3 but always got a bad request error. Bad request HOT 1
- Question: Is it possible to start the server without listhen? HOT 3
- Remove setImmediate from Response
- Cannot track status codes
- Typo
- `message` field in `createError` not included in response HOT 1
- Export EventStream Type HOT 2
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 h3.