h3
h3 copied to clipboard
⚡️ Minimal H(TTP) framework built for high performance and portability
### 🔗 Linked issue Closes #754 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [x] 🐞 Bug fix (a...
### Describe the feature Exporting the EventStream type would be helpful in storing eventstreams and passing them around. ### Additional information - [X] Would you be willing to help implement...
Not sure `https://listhen.unjs.io/` is working. ### 🔗 Linked issue ### ❓ Type of change - [x] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞...
### 🔗 Linked issue Resolves #755 ### ❓ Type of change - [x] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a...
### Environment node: 20.11.1 h3: 1.11.1 ### Reproduction https://stackblitz.com/edit/github-d9z5tl-zkmmw7?file=app.ts ### Describe the bug Regarding [docs](https://h3.unjs.io/guide/event-handler#error-handling), I expect to see `message` field in response when it passed to `createError`. Not sure,...
https://github.com/unjs/h3/blob/58e33ff00b1db1cf86a780bf8b152c3f7e573350/docs/1.guide/2.event-handler.md?plain=1#L83C3-L83C22 `defineEventHandlers` should be `defineEventHandler`
### Environment - Node Version: v20.12.2 - H3 Version: 1.11.1 ### Reproduction See https://stackblitz.com/edit/github-d9z5tl?file=app.ts ### Describe the bug Forwarded from https://github.com/nuxt/nuxt/issues/27248 When I return an error in `eventHandler`'s using `createError`,...
In https://github.com/unjs/h3/blob/8345c1f493abc284e6272621929ecb6385f3e4f2/src/utils/response.ts#L12, `Response` uses `setImmediate()` to defer responses. This technique can significantly boost the short-term throughput by allowing the processing of more than one low-event before going back to C++....
### Describe the change When using example from [documentation](https://h3.unjs.io/examples/handle-session#options) cookie somehow get wrongly formatted: But if I add `maxAge` to `cookie` object then everything is ok, so not sure if...
Hello, I am getting an error when I use the readBody() function on a get Request. After checking out the implementation I realised that it's a normal behaviour as it...