MINOR: httpclient/cli: implement a simple client over the CLI
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 18 Aug 2021 14:46:21 +0000 (16:46 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 18 Aug 2021 16:25:05 +0000 (18:25 +0200)
commit03a4eb154fe2aa2bcfb2fafb195b882652c16d15
treedf934c7fc942ac252a8418ab3acb7118270a8e7c
parent33b0d095ccb0cc3a564793b22c3e34b5e94cbbc0
MINOR: httpclient/cli: implement a simple client over the CLI

This commit implements an HTTP Client over the CLI, this was made as
working example for the HTTP Client API.

It usable over the CLI by specifying a method and an URL:

    echo "httpclient GET http://127.0.0.1:8000/demo.file" | socat /tmp/haproxy.sock -

Only IP addresses are accessibles since the API does not allow to
resolve addresses yet.
src/http_client.c