From 84b78bad298442b13472db5666951a4f7087fc6b Mon Sep 17 00:00:00 2001 From: Yingge He Date: Tue, 20 Feb 2024 15:57:18 -0800 Subject: [PATCH] Update relevant doc --- docs/protocol/extension_parameters.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/protocol/extension_parameters.md b/docs/protocol/extension_parameters.md index 4cdb60cf385..f6589629d21 100644 --- a/docs/protocol/extension_parameters.md +++ b/docs/protocol/extension_parameters.md @@ -98,6 +98,11 @@ value. For example to forward all the headers that start with 'PREFIX_' from both HTTP and GRPC, you should add `--http-header-forward-pattern PREFIX_.* --grpc-header-forward-pattern PREFIX_.*` to your `tritonserver` command. +By default, the regular expression pattern matches headers with case-insensitive +mode according to the HTTP protocol. If you want to enforce case-sensitive mode, +simplying adding the `(?-i)` prefix which turns off case-insensitive mode, +e.g. `--http-header-forward-pattern (?-i)PREFIX_.*`. + The forwarded headers can be accessed using the [Python](https://github.com/triton-inference-server/python_backend#inference-request-parameters) or C Backend APIs as inference request parameters.