You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "mach0gr (via GitHub)" <gi...@apache.org> on 2024/11/27 10:33:11 UTC

[I] LUA function to dump client headers in the order received [trafficserver]

mach0gr opened a new issue, #11886:
URL: https://github.com/apache/trafficserver/issues/11886

   The currently exposed LUA function **_ts.client_request.get_headers()_** is returning a LUA table holding all headers and their values. However, Lua tables are inherently unordered, which makes preserving the original order of headers impossible.
   
   I would like to put a feture request to expose a LUA function that can return the headers in a big string or on an indexed LUA table.
   Preserving the order or headers in the order the client sent them is important for troubleshooting purposes as well as client fingerprinting.
   
   This process is already available in your output_header test plugin seen here
   [https://github.com/apache/trafficserver/blob/9.2.x/example/plugins/c-api/output_header/output_header.c#L72](https://github.com/apache/trafficserver/blob/9.2.x/example/plugins/c-api/output_header/output_header.c#L72)
   
   can you expose it to LUA ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] LUA function to dump client headers in the order received [trafficserver]

Posted by "shukitchan (via GitHub)" <gi...@apache.org>.
shukitchan closed issue #11886: LUA function to dump client headers in the order received
URL: https://github.com/apache/trafficserver/issues/11886


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] LUA function to dump client headers in the order received [trafficserver]

Posted by "shukitchan (via GitHub)" <gi...@apache.org>.
shukitchan commented on issue #11886:
URL: https://github.com/apache/trafficserver/issues/11886#issuecomment-2504214956

   I will take a look at it next week. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org