h3
h3 copied to clipboard
⚡️ Minimal H(TTP) framework built for high performance and portability
The changes in PR #124 to make the `H3EventContext` extendable by userland types were insufficient to apply the type also to the `CompatibilityEvent`, which is the type of events for...
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Edited/Blocked These updates have been manually edited so Renovate will no longer make...
If you use an express-middleware (such as session or passport), one gets the following typescript error: ``` Type 'RequestHandler' is not comparable to type 'EventHandler'. ``` Example-code: ```ts import session...
would support something like this: ```js export default defineEventHandler(async event => { const { foo } = await useBody(event) return { result: foo } }) const result = await $fetch('/api/test',...
In the version, response is removed: https://github.com/unjs/h3/commit/b2856598e1432796ce7aadac2be1c11837f766d8 ``` setCookie(res, name, value, opts?) ``` cant be called in middleware since: ``` declare type Middleware = (req: IncomingMessage, res: ServerResponse, next: (err?:...
Hello I made nuxt-nitro demo clone without nitro. URL is here. https://nuxt-without-nitro-demo.vercel.app/ I try with `/api/hello` made with h3, It failed after deploy. When I test on local, It make...
How do I use h3 to get files from client/browser for file upload? I am coming from ExpressJs, where I can install a package called express-fileupload. Link: [Express Fileupload](https://www.npmjs.com/package/express-fileupload) ```js...
https://github.com/unjs/h3/issues/81 See also https://github.com/nuxt/framework/issues/5718.