]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: samples: add the http_date([<offset>]) sample converter.
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2013 12:36:01 +0000 (14:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2013 13:00:38 +0000 (15:00 +0200)
commit276fae9ab95a9addf6b867c78903d31ab4da8d3a
tree7b337fe3280bff8cb1783f543b8ffe64ef9beb30
parent6236d3abe4fe7e698f0fd26d6cf51f0d4c6d872a
MINOR: samples: add the http_date([<offset>]) sample converter.

Converts an integer supposed to contain a date since epoch to
a string representing this date in a format suitable for use
in HTTP header fields. If an offset value is specified, then
it is a number of seconds that is added to the date before the
conversion is operated. This is particularly useful to emit
Date header fields, Expires values in responses when combined
with a positive offset, or Last-Modified values when the
offset is negative.
doc/configuration.txt
src/proto_http.c