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

Does grpc-gateway support the HTTP 2.0 protocol? #703

Closed
ncepuwanghui opened this issue Jul 19, 2018 · 1 comment
Closed

Does grpc-gateway support the HTTP 2.0 protocol? #703

ncepuwanghui opened this issue Jul 19, 2018 · 1 comment

Comments

@ncepuwanghui
Copy link

According to the figure below, it can be seen that grpc-gateway only support HTTP 1.1. We want to use HTTP2.0+JSON to access the inner service. Does grpc-gateway have a plan to support HTTP 2.0 in the future?
image

@rogerhub
Copy link

It doesn't need to explicitly support h2. You can attach a grpc-gateway handler to the standard net/http Server, which will handle both http/1.1 and h2 (see examples/gateway/main.go for an example).

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

3 participants