NewHTTPToAsyncResponse creates a new AsyncResponse that wraps a single http.Response.
(r *http.Response)
| 48 | |
| 49 | // NewHTTPToAsyncResponse creates a new AsyncResponse that wraps a single http.Response. |
| 50 | func NewHTTPToAsyncResponse(r *http.Response) Responses[combiner.PipelineResponse] { |
| 51 | return syncResponse{ |
| 52 | r: pipelineResponse{ |
| 53 | r: r, |
| 54 | requestData: nil, |
| 55 | }, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func NewHTTPToAsyncResponseWithRequestData(r *http.Response, requestData any) Responses[combiner.PipelineResponse] { |
| 60 | return syncResponse{ |
no outgoing calls