Do creates a pipe that makes the HTTP request req and produces the response. See [Pipe.Do] for how the HTTP response status is interpreted.
(req *http.Request)
| 49 | // Do creates a pipe that makes the HTTP request req and produces the response. |
| 50 | // See [Pipe.Do] for how the HTTP response status is interpreted. |
| 51 | func Do(req *http.Request) *Pipe { |
| 52 | return NewPipe().Do(req) |
| 53 | } |
| 54 | |
| 55 | // Echo creates a pipe containing the string s. |
| 56 | func Echo(s string) *Pipe { |