h3
h3 copied to clipboard
⚡️ Minimal H(TTP) framework built for high performance and portability
This utility could be a wrapper of `sendRedirect`: ```ts function sendRedirectBack(event) { const back = getHeader(event, 'referer') || '/' return sendRedirect(event, back) } ``` This type of utility is in...
I am using JS and not TS and my VSCode showing me 57 Problems. Any one know how do I fix this? I really now used TypeScript so may be...
### Environment Node v18.19.0 H3 1.10.1. MacOS 14.2.1 (Intel) ### Reproduction This can be reproduced with this rep and simply trying to parse an inbound request body received with transfer-encoding:chunked....
### Describe the feature Hello, currently, the `onBeforeResponse` middleware hook is available for use, but `onAfterResponse` is only supported at the `createApp` level. Is it possible to implement `onAfterResponse` in...
Context: saw an instance from https://github.com/nuxt/nuxt/issues/25442#issuecomment-1911997902 but also previously in some other codebases The `event: H3Event` is a class but it is not immediately obvious in usage. Allows to override...
### Describe the feature When trying to set a session with data that exceeds 4096 characters, a cookie isn't created. To support session data with more than 4096 bytes, next-auth...
### 🔗 Linked issue Closes #623 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [x] 🐞 Bug fix (a...
### Environment H3 1.10.1 Node 20.10.0 ### Reproduction In one of my own Nuxt projects I am using H3 as a proxy to my backend. My backend accepts DELETE requests...
For historical reasons, we were used to automatically convert legacy express middleware to h3 handlers and when we changed that, we started to [add a warning](https://github.com/unjs/h3/blob/da128d8c2f8190eb0cb9b8310fe12ee090f9a81d/src/event/utils.ts#L118). Most of the advanced...
Right now `toWebRequest` calls `getRequestWebStream` eagerly, which starts reading the request body (to make it into a readable stream). I think we should do this lazily so the user can...