find http2 header field by name in lua plugin

asked 2021-02-03 11:18:29 +0000

ranjeetsih gravatar image

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?

edit retag flag offensive close merge delete