Overview
This example demonstrates HTTP middleware with hooks and conditional response decoration. It shows how to use BaseMiddleware to intercept requests, modify responses, and conditionally apply stream decorations.Example
Key Features
- Request Hooks: Modify requests before sending
- Response Hooks: Process responses after receiving
- Conditional Decoration: Apply transformations based on response type
- Stream Processing: Transform streamed data chunks in real-time
- Middleware Composition: Layer multiple processing steps