Skip to content

HTTP 2 - #106

Open
mendhak wants to merge 8 commits into
masterfrom
http2
Open

HTTP 2#106
mendhak wants to merge 8 commits into
masterfrom
http2

Conversation

@mendhak

@mendhak mendhak commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Basic HTTP2 working, but may need to add some HTTP2 specific tests

I think HTTP 2 should be the default. There are some HTTP 1 specific things though that need addressing.

Issue #36

Comment thread package.json
"node": ">=16.0.0"
},
"dependencies": {
"@httptoolkit/httpolyglot": "^3.1.0",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

This does some fancy header sniffing to figure out HTTP1 vs HTTP2

Comment thread index.js
key: require('fs').readFileSync(process.env.HTTPS_KEY_FILE || 'testpk.pem'),
cert: require('fs').readFileSync(process.env.HTTPS_CERT_FILE || 'fullchain.pem'),
maxHeaderSize: maxHeaderSize
ALPNProtocols: [ 'h2', 'http/1.1'],

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Default HTTP2, fallback HTTP1

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.

1 participant