Commit 817f8c3
committed
xds: support protocol config and request attributes propagation in server interceptor
Defer protocol configuration and request attributes propagation in
ExternalProcessorServerInterceptor to occur on the first applicable request
sent to the external processor instead of strictly on request headers.
- Updated ExternalProcessorServerInterceptor to store collected request attributes
during initialization in start() and propagate them on the first client-to-server
request (either request headers or request body).
- Updated protocol configuration to be sent on the very first request sent
to the external processor.
- Added Category 3 (Protocol Config Propagation) and Category 4 (Request
Attributes Propagation) integration tests in ExternalProcessorServerInterceptorTest
matching the category structuring of the client interceptor tests.
- Re-categorized existing server interceptor tests to maintain consistency.1 parent a5417a7 commit 817f8c3
5 files changed
Lines changed: 3186 additions & 10618 deletions
File tree
- xds/src
- main/java/io/grpc/xds
- test/java/io/grpc/xds
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
| |||
0 commit comments