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

b/149050012: Support HTTP protocols for remote backends #36

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

nareddyt
Copy link
Contributor

Modify ParseBackendProtocol to differentiate between HTTP1 and HTTP2.

Implementation notes:

  • Add UNKNOWN to BackendProtocol, easier to test and safer in prod code.
  • If http protocol is empty string, then default to HTTP1.

Testing:

Signed-off-by: Teju Nareddy [email protected]

Modify `ParseBackendProtocol` to support differentiate between `HTTP1` and `HTTP2`.

Implementation notes:
- Add `UNKNOWN` to BackendProtocol, easier to test and safer in prod code.
- If http protocol is empty string, then default to `HTTP1`.

Testing:
- New unit tests.
- Added http protocol to dynamic routing example.
- Will add integration tests once GoogleCloudPlatform#32 is merged, as that adds a h2 client.

Signed-off-by: Teju Nareddy <[email protected]>
@nareddyt nareddyt added the enhancement New feature or request label Feb 28, 2020
@nareddyt nareddyt self-assigned this Feb 28, 2020
@nareddyt nareddyt requested review from qiwzhang, TAOXUY and JLXIA and removed request for qiwzhang February 28, 2020 22:07
@nareddyt
Copy link
Contributor Author

nareddyt commented Mar 2, 2020

@JLXIA PTAL

@google-oss-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JLXIA, nareddyt, qiwzhang, TAOXUY

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JLXIA,TAOXUY,nareddyt,qiwzhang]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nareddyt nareddyt merged commit 21cd642 into GoogleCloudPlatform:master Mar 2, 2020
@nareddyt nareddyt deleted the http_protocol branch March 2, 2020 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants