Skip to content
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

How do i enable http/2 protocol #1109

Open
nowfalsalahudeen opened this issue Dec 28, 2024 · 0 comments
Open

How do i enable http/2 protocol #1109

nowfalsalahudeen opened this issue Dec 28, 2024 · 0 comments

Comments

@nowfalsalahudeen
Copy link

Description

When attempting to enable HTTP/2 on a server built using the Loco.rs framework, the server responds with HTTP/1.1
curl -I --http2 http://localhost:5150/_ping

The response indicates HTTP/1.1 instead of HTTP/2.

To Reproduce

Use curl to check the response headers:

curl -I --http2 https://127.0.0.1:3000
The response indicates HTTP/1.1 instead of HTTP/2.

Expected Behavior

The server should respond with HTTP/2 in the response headers when tested using curl or any other HTTP/2 client. This would ensure that the server is properly utilizing HTTP/2, which provides better performance through multiplexing and header compression.

Environment:

Additional Context

How do i configure it in loco?

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

No branches or pull requests

1 participant