HTTPHdrAction

HTTPHdrAction
HTTPHdrAction
JSON Example
{
    "action": "string",
    "cookie": {
        "name": "string",
        "value": "string"
    },
    "hdr": {
        "name": "string",
        "value": {
            "is_sensitive": false,
            "val": "string",
            "var": "string"
        }
    },
    "hdr_index": 0
}
string
action
Required

ADD A new header with the new value is added irrespective of the existence of an HTTP header of the given name. REPLACE A new header with the new value is added if no header of the given name exists, else existing headers with the given name are removed and a new header with the new value is added. REMOVE All the headers of the given name are removed. Enum options - HTTP_ADD_HDR, HTTP_REMOVE_HDR, HTTP_REPLACE_HDR. Allowed with any value in Enterprise, Enterprise with Cloud Services edition. Allowed in Essentials (Allowed values- HTTP_REMOVE_HDR,HTTP_REPLACE_HDR), Basic (Allowed values- HTTP_REMOVE_HDR,HTTP_REPLACE_HDR) edition.

cookie
Optional

cookie

hdr
Optional

hdr

integer As uint32 As uint32
hdr_index
Optional

Index to identify the header actions. Field introduced in 22.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.