bneradt commented on code in PR #12822:
URL: https://github.com/apache/trafficserver/pull/12822#discussion_r2723454264
##########
doc/admin-guide/plugins/header_rewrite.en.rst:
##########
@@ -1529,6 +1529,15 @@ The URL part names which may be used for these
conditions and actions are:
parameters, until the end of the URL. Empty string if there were
no
query parameters. ``Value`` = `p=hrw&v=1`
+ A specific query parameter value can be extracted using the
sub-key
+ syntax ``QUERY:<param_name>``. For example,
``%{CLIENT-URL:QUERY:p}``
+ would return ``hrw`` for the URL above.
+
+ .. note::
+ Query parameter names and values are matched as-is without URL
+ decoding. For example, ``%{CLIENT-URL:QUERY:my%20param}``
matches
+ the literal parameter name ``my%20param``, not ``my param``.
Review Comment:
Maybe add a note that if there are duplicate names, the first value listed
wins.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]