We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add an easy way to set headers for a grpc call
ATM, we can do:
Metadata extraHeaders = new Metadata(); extraHeaders.put(EXTRA_HEADER, "my-extra-value"); MutinyGreeterGrpc.MutinyGreeterStub alteredClient = MetadataUtils.attachHeaders(mutinyHelloClient, extraHeaders); alteredClient.sayHello...
Simiarily for the blocking client.
It gets a bit more complicated with the interface-based client:
Metadata extraHeaders = new Metadata(); extraHeaders.put(INTERFACE_HEADER, "my-interface-value"); MutinyGreeterGrpc.MutinyGreeterStub stub = ((GreeterClient) interfaceHelloClient).getStub(); MutinyGreeterGrpc.MutinyGreeterStub alteredClient = MetadataUtils.attachHeaders(stub, extraHeaders); alteredClient.sayHello...
No response
The text was updated successfully, but these errors were encountered:
/cc @cescoffier
Sorry, something went wrong.
CC @mkouba
gRPC: simplify adding headers to client calls
f555667
fixes quarkusio#19209
ea5f858
michalszynkiewicz
Successfully merging a pull request may close this issue.
Description
Add an easy way to set headers for a grpc call
ATM, we can do:
Simiarily for the blocking client.
It gets a bit more complicated with the interface-based client:
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: