We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the version, response is removed: b285659
setCookie(res, name, value, opts?)
cant be called in middleware since:
declare type Middleware = (req: IncomingMessage, res: ServerResponse, next: (err?: Error) => any) => any;
( but if I set the type as any, it works)
What's the reason for removing ServerResponse for the api?
The text was updated successfully, but these errors were encountered:
@csvwolf
h3 has not yet reached to stable version (i.e. v1), so breaking changes are likely to be introduced even in minor updates.
As far as I see, your issue results from #73.
You also might want to check a author's comment, which says that req/res style middleware has been deprecated.
req/res
Sorry, something went wrong.
You should pass event as first argument to all h3 utils, setCookie(event, ...)
setCookie(event, ...)
No branches or pull requests
In the version, response is removed: b285659
cant be called in middleware since:
( but if I set the type as any, it works)
What's the reason for removing ServerResponse for the api?
The text was updated successfully, but these errors were encountered: