]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cli: Add payload support
authorAurélien Nephtali <aurelien.nephtali@corp.ovh.com>
Wed, 18 Apr 2018 11:26:46 +0000 (13:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Apr 2018 12:19:33 +0000 (14:19 +0200)
commitabbf6071058ba5f87dcfce2f5fb5645ddd591020
treeaba20fe3474f540861e06243845f2c7c42189181
parent799f51801a948e3728a1df28d7eafe51df6b0565
MEDIUM: cli: Add payload support

In order to use arbitrary data in the CLI (multiple lines or group of words
that must be considered as a whole, for example), it is now possible to add a
payload to the commands. To do so, the first line needs to end with a special
pattern: <<\n. Everything that follows will be left untouched by the CLI parser
and will be passed to the commands parsers.

Per-command support will need to be added to take advantage of this
feature.

Signed-off-by: Aurélien Nephtali <aurelien.nephtali@corp.ovh.com>
17 files changed:
doc/management.txt
include/proto/applet.h
include/proto/cli.h
include/types/applet.h
include/types/cli.h
src/cache.c
src/cli.c
src/dns.c
src/hlua.c
src/map.c
src/proto_http.c
src/proxy.c
src/server.c
src/ssl_sock.c
src/stats.c
src/stick_table.c
src/stream.c