Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jul 15, 2020

Motivation:

Recent work in #886 and #889 made GRPCProtobufPayload redundant. Since
we broke this work into multiple PRs we temporarily dropped support for
custom GRPCPayloads on the server. This PR adds that back.

Modifications:

  • Add GRPCPayload support back to the server by adding the relevant
    call handler factory functions
  • Re-enable the custom payload tests
  • Add a few more custom payload tests (since they were limited to just
    bidirectional streaming)

Result:

  • Clients and servers support SwiftProtobuf.Message and GRPCPayload
    separately without using GRPCProtobufPayload to bridge between them.

Motivation:

Recent work in grpc#886 and grpc#889 made `GRPCProtobufPayload` redundant. Since
we broke this work into multiple PRs we temporarily dropped support for
custom `GRPCPayload`s on the server. This PR adds that back.

Modifications:

- Add `GRPCPayload` support back to the server by adding the relevant
  call handler factory functions
- Re-enable the custom payload tests
- Add a few more custom payload tests (since they were limited to just
  bidirectional streaming)

Result:

- Clients and servers support `SwiftProtobuf.Message` and `GRPCPayload`
  separately without using `GRPCProtobufPayload` to bridge between them.
@glbrntt glbrntt added the ⚠️ semver/major Breaks existing public API. label Jul 15, 2020
@glbrntt glbrntt requested a review from Lukasa July 15, 2020 12:48
@glbrntt glbrntt merged commit 183e380 into grpc:master Jul 15, 2020
@glbrntt glbrntt deleted the gb-custom-payload-for-server branch July 15, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ semver/major Breaks existing public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants