]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hq-interop: decode response into HTX for backend side support
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Jun 2025 14:23:22 +0000 (16:23 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Jun 2025 09:28:54 +0000 (11:28 +0200)
commita286d5476ba459a18b886f9a229098d54c11e9f0
treec1eb8d703046572c0a9a715c3f8a7e3e91b1683d
parent4031bf743255ce2317b856316d288848cb173d16
MINOR: hq-interop: decode response into HTX for backend side support

Implement transcoding of a HTTP/0.9 response into a HTX message.

HTTP/0.9 is a really simple substract of HTTP spec. The response does
not have any status line and is contains only the payload body. Response
is finished when the underlying connection/stream is closed.

A status line is generated to be compliant with HTX. This is performed
on the first invokation of rcv_buf for the current stream. Status code
is set to 200. Payload body if present is then copied using
htx_add_data().
src/hq_interop.c