You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/doc/userguide/lua
Victor Julien 82177e0eec lua/http: read trailer fields from Lua
Header functions in the Lua http library read the header tables and the raw header
buffer. Once trailer fields moved out of those, a script could no longer see them at
all, and nothing replaced the access: the only way to act on a trailer was a rule.

Add the trailer twins over the tables and blocks the http.trailer buffers use:
tx:request_trailer(), tx:request_trailers(), tx:request_trailers_raw() and the response
versions. Name lookup is case insensitive and reports a miss as an error, like the
header functions. Repeated fields need no merging here: the parser folds them while
storing, so a name has one entry.

HTTP/2 is out of reach of these functions: the Lua http library is driven by htp, so it
has no HTTP/2 transaction to read.

Ticket: #8256.
5 days ago
..
libs lua/http: read trailer fields from Lua 5 days ago
index.rst doc/userguide: document lua hashlib 2 years ago
lua-functions.rst doc/lua-functions: update lua-function documentation 1 year ago
lua-usage.rst doc: Document luaxform transform 1 year ago