HTTP headers are delivered via Metadata. You will need to use a ClientInterceptor. HttpUtils.newCaptureMetadataInterceptor() <https://grpc.github.io/grpc-java/javadoc/io/grpc/stub/MetadataUtils.html#newCaptureMetadataInterceptor-java.util.concurrent.atomic.AtomicReference-java.util.concurrent.atomic.AtomicReference-> can be used for quick-and-dirty solutions. If you need to do that commonly, I'd suggest making a custom interceptor. Although it's hard for me to recommend anything specific since I don't know what you're doing with the header.
On Thu, Oct 29, 2020 at 6:29 AM Guy Pardon <[email protected]> wrote: > Hi, > > We are trying to add HTTP response headers on a service call and want to > extract them on the client side. There does not seem to be a lot of > documentation on how to do it, so does anybody have any hints? We are using > Java... > > Thanks! > Guy > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/e35e5939-8b9a-4501-9aa0-146ff71781d3n%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/e35e5939-8b9a-4501-9aa0-146ff71781d3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oNfAfEo_dSb2uUF3Od1YhoB7eNsZM9u4tzVvwDh8YPqhw%40mail.gmail.com.
smime.p7s
Description: S/MIME Cryptographic Signature
