-
-
Notifications
You must be signed in to change notification settings - Fork 65
Add http2 server support on TypeScript type definition #60
New issue
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for these types?
@mcollina done, see if its good please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This add http2 and https2
Co-Authored-By: Manuel Spigolon <[email protected]>
@Eomm nice, applied your suggestions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I had trouble with TypeScript when using fatify-cors with a http2 fastify server. The cors headers are correctly set. The problem is only a types incompatibility between Node http and http2 servers. This fixes it by allowing both server types.
Checklist
npm run test
andnpm run benchmark