NewNoopMiddleware returns a middleware that is a passthrough only
()
| 6 | |
| 7 | // NewNoopMiddleware returns a middleware that is a passthrough only |
| 8 | func NewNoopMiddleware() AsyncMiddleware[combiner.PipelineResponse] { |
| 9 | return AsyncMiddlewareFunc[combiner.PipelineResponse](func(next AsyncRoundTripper[combiner.PipelineResponse]) AsyncRoundTripper[combiner.PipelineResponse] { |
| 10 | return AsyncRoundTripperFunc[combiner.PipelineResponse](func(req Request) (Responses[combiner.PipelineResponse], error) { |
| 11 | return next.RoundTrip(req) |
| 12 | }) |
| 13 | }) |
| 14 | } |
no test coverage detected