Last active
February 27, 2018 10:05
-
-
Save tfrench/d1568a901bde37a2ee9bb6d6d078ee63 to your computer and use it in GitHub Desktop.
gRPC call metadata - server side
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ServerServicer(service_pb2_grpc.ServerServicer): | |
def Foo(self, request, context): | |
metadata = context.invocation_metadata() | |
print 'metadata: {}'.format(metadata) | |
return service_pb2.Empty() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment