NewAsyncResponse creates a new AsyncResponse that wraps a single http.Response.
(r combiner.PipelineResponse)
| 41 | |
| 42 | // NewAsyncResponse creates a new AsyncResponse that wraps a single http.Response. |
| 43 | func NewAsyncResponse(r combiner.PipelineResponse) Responses[combiner.PipelineResponse] { |
| 44 | return syncResponse{ |
| 45 | r: r, |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // NewHTTPToAsyncResponse creates a new AsyncResponse that wraps a single http.Response. |
| 50 | func NewHTTPToAsyncResponse(r *http.Response) Responses[combiner.PipelineResponse] { |
no outgoing calls