]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: Add tcp-request switch-mode action to perform HTTP upgrade
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Mar 2021 11:03:44 +0000 (12:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 11:17:19 +0000 (13:17 +0200)
commitae863c62e3c2d5b9aa19131ce674a75eb2ac81d3
treeb284c837be63dc9c12c123c40b644910a1e098ae
parent6c1fd987f6b0d7f7c6f5976a3eebdfad4d894811
MEDIUM: Add tcp-request switch-mode action to perform HTTP upgrade

It is now possible to perform HTTP upgrades on a TCP stream from the
frontend side. To do so, a tcp-request content rule must be defined with the
switch-mode action, specifying the mode (for now, only http is supported)
and optionnaly the proto (h1 or h2).

This way it could be possible to set HTTP directives on a TCP frontend which
will only be evaluated if an upgrade is performed. This new way to perform
HTTP upgrades should replace progressively the old way, consisting to route
the request to an HTTP backend. And it should be also a good start to remove
all HTTP processing from tcp-request content rules.

This action is terminal, it stops the ruleset evaluation. It is only
available on proxy with the frontend capability.

The configuration manual has been updated accordingly.
doc/configuration.txt
include/haproxy/stream-t.h
include/haproxy/stream.h
src/proxy.c
src/stream.c