info: introduce command prefixes '/http' and '/plain'
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 2 Jan 2017 13:06:22 +0000 (14:06 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 4 Jan 2017 08:47:10 +0000 (09:47 +0100)
commit3083f766a05b7d1d9df24c849e3d7fa037b4deee
treec75f4d6fe22918ef2078102197640ce8eb2da6ed
parentc5aaf6923befdcb29240769515d778eeebfcfd66
info: introduce command prefixes '/http' and '/plain'

All info plugins support a number of request prefixes:
- /http : forces output WITH    http headers, temporarily overriding the
          configured "httpheaders" value.
- /plain: forces output WITHOUT http headers, temporarily overriding the
          configured "httpheaders" value.

These prefixes have to be at the start of the request string, can occur
only there, and can occur only once.

Note that this will NOT work when there is an internal error (only occurs
when the connection is not ready to be read, which is very unlikely).

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/README_INFO
lib/info/info_types.h
lib/info/olsrd_info.c