pathFilter

Description

<<<<<<< HEAD Select exchanges according to url path. Path includes query string if any. Path must with /

Select exchanges according to url path. Path includes query string if any. Path must start with /

b5d51bd2a3f1870beb9607eaba46ac93d959bb15

Evaluation scope

Evaluation scope defines the timing where this filter will be applied.

{.alert .alert-info} ::: requestHeaderReceivedFromClient This scope occurs the moment fluxzy parsed the request header receiveid from client :::

YAML configuration name

pathFilter

Settings

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

{.property-table .property-table-filter} ::: | Property | Type | Description | DefaultValue | | :------- | :------- | :------- | -------- | | 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 | :::

Example of usage

The following examples apply a comment to the filtered exchange

Retains only exchanges having uri starting with API.

rules:
- filter:
    typeKind: PathFilter
    pattern: /api
    operation: StartsWith
  actions:
  - typeKind: ApplyCommentAction
    comment: filter was applied

.NET reference

View definition of PathFilter for .NET integration.

See also

The following filters are related to this filter: