]> git.kaiwu.me - haproxy.git/commit
DOC: htx: add the NOOP block to the HTX API documentation
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Nov 2026 13:23:11 +0000 (14:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Nov 2026 13:34:02 +0000 (14:34 +0100)
commit76d0e0d29e79a1338bb373a3b135617ca0a4cd4c
tree17955ecc31fffbd84b32cc0d7f01277f2c0b5652
parent221c40bbf857ef0ba1feb7771e7aad4ea4a86bb9
DOC: htx: add the NOOP block to the HTX API documentation

Update the htx-api internals documentation for the HTX_BLK_NOOP block
introduced by the "MINOR: htx: Add a noop block to carry the EOM flag on an
empty message" commit:

  - Add the no-op block to the marker kinds, the supported types list and
    the typical composition of an HTX message.

  - Document that a NOOP block may carry the EOM flag and that htx_set_eom()
    now relies on it, and no longer on an EOT block, to report the end of
    an empty message.

  - Document that an EOT block without the EOM flag is a valid state: the
    end of the trailers was reached but the message is not ended, more data
    may follow. Consumers must check the EOM flag, not the block type.

  - Mention NOOP for htx_add_endof() and the new htx_add_noop() shortcut,
    for htx_get_blk_value() which returns an empty string for it, and fix
    the htx_skip_msg_payload() description which may now add a NOOP block
    when the message becomes empty.
doc/internals/api/htx-api.txt