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

grpc metadata support #61

Closed
mizanRahman opened this issue Jan 2, 2018 · 2 comments
Closed

grpc metadata support #61

mizanRahman opened this issue Jan 2, 2018 · 2 comments
Labels
question A question about this library or its usage

Comments

@mizanRahman
Copy link

does this library support metadata on rpc requests?
grpc-go has metadata support:
https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-metadata.md

@ST-DDT
Copy link
Collaborator

ST-DDT commented Oct 25, 2018

I assume this question is probably better suited in the grpc-java repo, because this library does not provide or change the behavior of the grpc-stuff.

AFAICT you cannot access the meta data in the actual service, due to the grpc-library no providing a parameter for that, but I'm not sure whether it is supposed to be like that in the first place.

It is possible to access and modify the metadata in interceptors though.

Here the signature of the ServerInterceptor:
ServerCall.Listener<RequestT> startCall(ServerCall<RequestT, ResponseT>, Metadata);

@ST-DDT ST-DDT added the question A question about this library or its usage label Nov 27, 2018
@ST-DDT
Copy link
Collaborator

ST-DDT commented Dec 15, 2018

This question/request cannot be properly answered by this library. If you have something that this library could do to help you with your request please comment below.

@ST-DDT ST-DDT closed this as completed Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about this library or its usage
Projects
None yet
Development

No branches or pull requests

2 participants