------------------------------------------------------------------------
*From:* Aleksandar Lazic [mailto:al-mob...@none.at]
*Sent:* Friday, May 24, 2019, 20:30 EDT
*To:* Patrick Hemmer <hapr...@stormcloud9.net>
*Cc:* Haproxy <haproxy@formilux.org>
*Subject:* Capturing headers from http/2 trailers?

Hi.

Fri May 24 15:00:55 GMT+02:00 2019 Patrick Hemmer :

Is there a way to capture (and log) headers from http/2 response
  > trailers? The documentation doesn't mention trailers, and when I try to
  > reference headers which are present in the trailers (e.g.
  > "res.fhdr(grpc-status)"), it doesn't get captured.
  >
  > At the end of the day I'm trying to log the grpc-status and grpc-message
  > headers from gRPC responses.

In the upcoming 2.0 is ungrpc an protobuf available.

http://git.haproxy.org/?p=haproxy.git;a=blob;f=doc/configuration.txt;h=40424073e58048100f79d08963e49d614a6e7dcb;hb=HEAD

Maybe this will do what you want

The `grpc-status` and `grpc-message` headers are passed as h2 trailers. They're not in the protobuf body.

-Patrick

Reply via email to