modify_incoming_request_header
- Property Manager name: Modify Incoming Request Header
- Behavior version: The
v2024-10-21
rule format supports themodify_incoming_request_header
behavior v1.2. - Rule format status: GA, stable
- Access: Read/Write
- Allowed in includes: Yes
Modify, add, remove, or pass along specific request headers coming upstream from the client.
Depending on the type of action
you want to perform, specify the corresponding standard header name, or a custom_header_name
if the standard name is set to OTHER
. The header_value
serves as a match condition when the action is DELETE
or MODIFY
, and the new_header_value
applies when the action is ADD
or MODIFY
.
See also modify_incoming_response_header
, modify_outgoing_request_header
, and modify_outgoing_response_header
.
Option | Type | Description | Requires | |
---|---|---|---|---|
action | enum | Either | {"displayType":"enum","options":["ADD","DELETE","MODIFY","PASS"],"tag":"select"} | |
ADD | Add the header. | |||
DELETE | Delete the header. | |||
MODIFY | Modify the header. | |||
PASS | Pass through the header. | |||
standard_add_header_name | enum | If the value of | action is ADD | {"displayType":"enum","options":["ACCEPT_ENCODING","ACCEPT_LANGUAGE","OTHER"],"tag":"select"} {"if":{"attribute":"action","op":"eq","value":"ADD"}} |
ACCEPT_ENCODING | Add an | |||
ACCEPT_LANGUAGE | Add an | |||
OTHER | Specify another header to add. | |||
standard_delete_header_name | enum | If the value of | action is DELETE | {"displayType":"enum","options":["IF_MODIFIED_SINCE","VIA","OTHER"],"tag":"select"} {"if":{"attribute":"action","op":"eq","value":"DELETE"}} |
IF_MODIFIED_SINCE | The | |||
VIA | The | |||
OTHER | Specify another header to remove. | |||
standard_modify_header_name | enum | If the value of | action is MODIFY | {"displayType":"enum","options":["ACCEPT_ENCODING","ACCEPT_LANGUAGE","OTHER"],"tag":"select"} {"if":{"attribute":"action","op":"eq","value":"MODIFY"}} |
ACCEPT_ENCODING | Add an | |||
ACCEPT_LANGUAGE | Add an | |||
OTHER | Specify another header to add. | |||
standard_pass_header_name | enum | If the value of | action is PASS | {"displayType":"enum","options":["ACCEPT_ENCODING","ACCEPT_LANGUAGE","OTHER"],"tag":"select"} {"if":{"attribute":"action","op":"eq","value":"PASS"}} |
ACCEPT_ENCODING | Add an | |||
ACCEPT_LANGUAGE | Add an | |||
OTHER | Specify another header to add. | |||
custom_header_name | string (allows variables) | Specifies a custom field name that applies when the relevant standard header name is set to | standard_add_header_name is OTHER OR standard_delete_header_name is OTHER OR standard_modify_header_name is OTHER OR standard_pass_header_name is OTHER | {"displayType":"string","tag":"input","type":"text"} {"if":{"op":"or","params":[{"attribute":"standardAddHeaderName","op":"eq","value":"OTHER"},{"attribute":"standardDeleteHeaderName","op":"eq","value":"OTHER"},{"attribute":"standardModifyHeaderName","op":"eq","value":"OTHER"},{"attribute":"standardPassHeaderName","op":"eq","value":"OTHER"}]}} |
header_value | string (allows variables) | Specifies the new header value. | action is ADD | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"action","op":"eq","value":"ADD"}} |
new_header_value | string (allows variables) | Supplies an HTTP header replacement value. | action is MODIFY | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"action","op":"eq","value":"MODIFY"}} |
avoid_duplicate_headers | boolean | When enabled with the | action is MODIFY | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"action","op":"eq","value":"MODIFY"}} |
Updated 17 days ago