]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http_fetch: add "req.ungrpc" sample fetch for gRPC.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 25 Feb 2019 14:30:36 +0000 (15:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Feb 2019 15:27:05 +0000 (16:27 +0100)
commit1fceee8316ba2a30cded3f42f958be83f7bf4c94
treef5c9627224a97831df4814cd41fc4e2dbf9cb93a
parent3a463c92cff6783ff758ee9aef21d4c585676e58
MINOR: http_fetch: add "req.ungrpc" sample fetch for gRPC.

This patch implements "req.ungrpc" sample fetch method to decode and
parse a gRPC request. It takes only one argument: a protocol buffers
field number to identify the protocol buffers message number to be looked up.
This argument is a sort of path in dotted notation to the terminal field number
to be retrieved.

  ex:
    req.ungrpc(1.2.3.4)

This sample fetch catch the data in raw mode, without interpreting them.
Some protocol buffers specific converters may be used to convert the data
to the correct type.
include/proto/protocol_buffers.h [new file with mode: 0644]
src/http_fetch.c