HTTP/2 multiplexing changes how an application behaves under load, and isolating that traffic with h2TrafficOnlyFilter gives you a clean way to study it. Whether you are profiling stream backpressure, downgrading flaky servers, or simply correlating logs by protocol, this filter pairs naturally with header, throttling, and routing actions.
Use h2TrafficOnlyFilter when a rule should apply only to exchanges negotiated over HTTP/2. The filter runs as soon as the request headers are parsed, so it composes cleanly with header modifications, throttling, or any action that targets the request or response.
Typical scenarios:
Annotate every HTTP/2 request with a debug header so you can correlate it on the backend or in a downstream tool.
rules:
- filter:
typeKind: H2TrafficOnlyFilter
actions:
- typeKind: AddRequestHeaderAction
headerName: x-fluxzy-protocol
headerValue: http2
Useful when a server advertises HTTP/2 but actually misbehaves; downgrade the connection so you can capture cleaner traces.
rules:
- filter:
typeKind: FilterCollection
operation: And
children:
- typeKind: H2TrafficOnlyFilter
- typeKind: HostFilter
pattern: flaky.example.com
operation: Exact
actions:
- typeKind: ForceHttp11Action
Simulate a slow network for multiplexed clients so you can see how a single-stream backpressure event affects user experience.
rules:
- filter:
typeKind: H2TrafficOnlyFilter
actions:
- typeKind: DelayAction
delay: 500
Select H2 exchanges only.
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
h2TrafficOnlyFilter
This filter has no specific characteristic
The following table describes the customizable properties available for this filter:
| Property | Type | Description | DefaultValue |
|---|---|---|---|
| inverted | boolean | Negate the filter result | false |
The following examples apply a comment to the filtered exchange
Select H2 exchanges only.
rules:
- filter:
typeKind: H2TrafficOnlyFilter
actions:
- typeKind: ApplyCommentAction
comment: filter was applied
View definition of H2TrafficOnlyFilter for .NET integration.
The following filters are related to this filter:
No. HTTP/3 is a separate protocol, and this filter matches only HTTP/2 exchanges. Use h11TrafficOnlyFilter for HTTP/1.1 and stack filters as needed.
Each multiplexed stream surfaces as its own exchange in Fluxzy, so any stream negotiated over HTTP/2 is matched regardless of its origin.
The captured exchange in the Fluxzy desktop or trace files records the negotiated protocol. You can also rely on this filter to verify rule application end to end.