haproxy/include/types
Christopher Faulet 8acb1284bc MINOR: checks: Add a way to send custom headers and payload during http chekcs
The 'http-check send' directive have been added to add headers and optionnaly a
payload to the request sent during HTTP healthchecks. The request line may be
customized by the "option httpchk" directive but there was not official way to
add extra headers. An old trick consisted to hide these headers at the end of
the version string, on the "option httpchk" line. And it was impossible to add
an extra payload with an "http-check expect" directive because of the
"Connection: close" header appended to the request (See issue #16 for details).

So to make things official and fully support payload additions, the "http-check
send" directive have been added :

    option httpchk POST /status HTTP/1.1

    http-check send hdr Content-Type "application/json;charset=UTF-8" \
        hdr X-test-1 value1 hdr X-test-2 value2 \
        body "{id: 1, field: \"value\"}"

When a payload is defined, the Content-Length header is automatically added. So
chunk-encoded requests are not supported yet. For now, there is no special
validity checks on the extra headers.

This patch is inspired by Kiran Gavali's work. It should fix the issue #16 and
as far as possible, it may be backported, at least as far as 1.8.
2020-04-27 09:39:37 +02:00
..
acl.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
action.h MEDIUM: http-rules: Support extra headers for HTTP return actions 2020-02-06 15:13:03 +01:00
activity.h MAJOR: fd: Get rid of the fd cache. 2019-07-31 14:12:55 +02:00
applet.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
arg.h MEDIUM: stream: support use-server rules with dynamic names 2020-03-29 09:55:10 +02:00
auth.h
backend.h
capture.h
channel.h CLEANUP: channel: Remove the unused flag CF_WAKE_CONNECT 2019-07-19 09:24:12 +02:00
checks.h BUG/MINOR: check: Update server address and port to execute an external check 2020-04-27 09:39:13 +02:00
cli.h MINOR: cli: add an expert mode to hide dangerous commands 2019-10-24 18:38:00 +02:00
compression.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
connection.h CLEANUP: assorted typo fixes in the code and comments 2020-04-17 09:37:36 +02:00
counters.h MINOR: counters: Remove failed_secu counter and use denied_resp instead 2020-01-20 15:18:45 +01:00
dict.h MINOR: dict: Store the length of the dictionary entries. 2019-06-07 15:47:54 +02:00
dns.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
fcgi-app.h MEDIUM: fcgi-app: Add FCGI application and filter 2019-09-17 10:18:54 +02:00
fd.h CLEANUP: assorted typo fixes in the code and comments 2020-04-17 09:37:36 +02:00
filters.h CLEANUP: assorted typo fixes in the code and comments 2020-03-14 09:42:07 +01:00
freq_ctr.h
global.h MINOR: init: report the haproxy version and executable path once on errors 2020-04-16 10:52:41 +02:00
hlua.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
http_ana.h BUG/MINOR: http_ana: make sure redirect flags don't have overlapping bits 2020-02-27 23:44:41 +01:00
http_htx.h MINOR: http-htx: Add a new section to create groups of custom HTTP errors 2020-01-20 15:18:46 +01:00
lb_chash.h
lb_fas.h
lb_fwlc.h
lb_fwrr.h
lb_map.h
listener.h CLEANUP: assorted typo fixes in the code and comments 2020-04-17 09:37:36 +02:00
log.h BUG/MINOR: log: make "show startup-log" use a ring buffer instead 2019-11-15 15:50:16 +01:00
mailers.h
map.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
obj_type.h
pattern.h CLEANUP: assorted typo fixes in the code and comments 2020-03-14 09:42:07 +01:00
peers.h MINOR: peers: Add debugging information to "show peers". 2019-11-19 14:48:28 +01:00
pipe.h
port_range.h
proto_udp.h
protocol_buffers.h
protocol.h CLEANUP: assorted typo fixes in the code and comments 2020-03-14 09:42:07 +01:00
proxy.h MINOR: checks: Add a way to send custom headers and payload during http chekcs 2020-04-27 09:39:37 +02:00
queue.h
ring.h BUILD: buffer: types/{ring.h,checks.h} should include buf.h, not buffer.h 2020-03-07 06:07:18 +01:00
sample.h MAJOR: http: Remove the HTTP legacy code 2019-07-19 09:24:12 +02:00
server.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
session.h MEDIUM: sessions: Introduce session flags. 2019-05-29 15:41:47 +02:00
shctx.h
signal.h MINOR: wdt: Move the definitions of WDTSIG and DEBUGSIG into types/signal.h. 2020-03-18 13:07:19 +01:00
sink.h MINOR: sink: now report the number of dropped events on output 2019-08-27 17:14:19 +02:00
spoe.h CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
ssl_sock.h CLEANUP: assorted typo fixes in the code and comments 2020-04-17 09:37:36 +02:00
stats.h MINOR: stats: Report internal errors in the proxies/listeners/servers stats 2020-01-20 15:18:45 +01:00
stick_table.h MINOR: stick-table: Add "server_name" new data type. 2019-06-05 08:33:35 +02:00
stream_interface.h MEDIUM: stream-int: introduce a new state SI_ST_RDY 2019-06-06 16:36:19 +02:00
stream.h CLEANUP: assorted typo fixes in the code and comments 2020-04-17 09:37:36 +02:00
task.h MINOR: task: permanently flag tasklets waking themselves up 2020-01-31 17:45:10 +01:00
template.h
trace.h MINOR: trace: change the detail_level to per-source verbosity 2019-08-29 17:11:25 +02:00
vars.h