Append a request header.
Evaluation scope defines the timing where this filter will be applied.
requestHeaderReceivedFromClient This scope occurs the moment fluxzy parsed the request header receiveid from client
addRequestHeaderAction
The following table describes the customizable properties available for this action:
Property | Type | Description | DefaultValue |
---|---|---|---|
headerName | string | ||
headerValue | string |
The following examples apply this action to any exchanges
Add DNT = 1 header to any requests.
rules:
- filter:
typeKind: AnyFilter
actions:
- typeKind: AddRequestHeaderAction
headerName: DNT
headerValue: 1
Add a request cookie with name cookie_name
and value cookie_value
.
rules:
- filter:
typeKind: AnyFilter
actions:
- typeKind: AddRequestHeaderAction
headerName: Cookie
headerValue: cookie_name=cookie_value
View definition of AddRequestHeaderAction for .NET integration.
The following actions are related to this action: