Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

find http2 header field by name in lua plugin

I want to find value of http2 header like content type in a lua script. In c language dissectors there is an api http2_get_header_value called as follows:

http2_content_type = http2_get_header_value(pinfo, HTTP2_HEADER_CONTENT_TYPE, FALSE);

Is there a similar way to read header value in lua script?