Select exchanges according to response header values.
Evaluation scope defines the timing where this filter will be applied.
responseHeaderReceivedFromRemote This scope occurs the moment fluxzy has done parsing the response header.
responseHeaderFilter
The following table describes the customizable properties available for this filter:
Property | Type | Description | DefaultValue |
---|---|---|---|
headerName | string | Header name | |
pattern | string | The string pattern to search | |
operation | exact | contains | startsWith | endsWith | regex | The search operation performed | contains |
caseSensitive | boolean | true if the Search should be case sensitive | false |
inverted | boolean | Negate the filter result | false |
The following examples apply a comment to the filtered exchange
Retains only exchanges with a strict-transport-security response header.
rules:
- filter:
typeKind: ResponseHeaderFilter
headerName: strict-transport-security
pattern: .*
operation: Regex
actions:
- typeKind: ApplyCommentAction
comment: filter was applied
View definition of ResponseHeaderFilter for .NET integration.
This filter has no related filter