addRequestHeaderAction

Description

Append a request header.

Evaluation scope

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

YAML configuration name

addRequestHeaderAction

Settings

The following table describes the customizable properties available for this action:

Property Type Description DefaultValue
headerName string
headerValue string

Example of usage

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

.NET reference

View definition of AddRequestHeaderAction for .NET integration.

See also

The following actions are related to this action:


Go back to list