New Fluxzy 2.0 just shipped. Electron is out, Tauri is in. Fresh design, 68% smaller install. Learn more

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:


What is rule file? | How to integrate rule with Fluxzy Desktop? | How to integrate rule with Fluxzy CLI?


Go back to list