(req Request)
| 181 | } |
| 182 | |
| 183 | func (b *pipelineBridge) RoundTrip(req Request) (Responses[combiner.PipelineResponse], error) { |
| 184 | r, err := b.next.RoundTrip(req) |
| 185 | if err != nil { |
| 186 | return nil, err |
| 187 | } |
| 188 | |
| 189 | // check for request data in the context and echo it back if it exists |
| 190 | if val := req.ResponseData(); val != nil { |
| 191 | return NewHTTPToAsyncResponseWithRequestData(r, val), nil |
| 192 | } |
| 193 | |
| 194 | return NewHTTPToAsyncResponse(r), nil |
| 195 | } |
nothing calls this directly
no test coverage detected