Skip to content

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

Merged
merged 3 commits into from
Mar 28, 2020
Merged

Add http2 server support on TypeScript type definition #60

merged 3 commits into from
Mar 28, 2020

Conversation

gcangussu
Copy link
Contributor

@gcangussu gcangussu commented Mar 23, 2020

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

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@mcollina mcollina left a 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?

@gcangussu
Copy link
Contributor Author

@mcollina done, see if its good please

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina requested a review from Eomm March 24, 2020 16:25
Copy link
Member

@Eomm Eomm left a 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]>
@gcangussu
Copy link
Contributor Author

@Eomm nice, applied your suggestions

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Eomm Eomm merged commit 6414f9c into fastify:master Mar 28, 2020
@gcangussu gcangussu deleted the support-http2-server branch March 29, 2020 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants