getting the original header order in HTTP/2

23 views
Skip to first unread message

reflection_probe

unread,
Apr 30, 2022, 12:21:21 PM4/30/22
to openresty-en
ngx.req.get_headers() returns a table containing every header, but table
keys do not have a defined order. the iteration order is not stable at
runtime, even across identical requests. ngx.req.raw_header() returns a
string containing the entire pre-body request, but it's documented as
not working on HTTP/2, and also string parsing is not my favorite thing
in the world to do anyway.

is there a way to get the original header order as sent by the client in
HTTP/2?

Junlong li

unread,
May 10, 2022, 8:32:05 PM5/10/22
to openresty-en
can not do that at the moment.
Reply all
Reply to author
Forward
0 new messages