Updated on 2025-08-15 GMT+08:00

SetRespHeadersContent

Table 1 SetRespHeadersContent

Parameter

Mandatory

Type

Description

response_headers

No

Array of HeaderPolicy objects

Response header information.

Table 2 HeaderPolicy

Parameter

Mandatory

Type

Description

name

No

String

Response header name, which is case-insensitive. Start with a letter, and include letters, digits, and hyphens (-). (1 to 32 characters)

value_type

No

String

Default value. If this parameter is not specified, the default value is the custom content. Options:

  • custom_value: Use the custom content as the value.
  • system_parameter: Use a system parameter as the value.

value

No

String

Response header value, with a maximum of 255 characters.

When value_type is set to a system parameter, gateway system parameters can be used.

The gateway system parameter is as follows:

  • $context.cacheStatus: response cache hit status.

action

No

String

Action to be executed by the plug-in when the backend response contains this response header. The value can be append, override, delete, skip, or add. The value is case insensitive. When the value type is a system parameter, only add and append can be selected.