Get creates a pipe that makes an HTTP GET request to url, and produces the response. See [Pipe.Do] for how the HTTP response status is interpreted.
(url string)
| 114 | // Get creates a pipe that makes an HTTP GET request to url, and produces the |
| 115 | // response. See [Pipe.Do] for how the HTTP response status is interpreted. |
| 116 | func Get(url string) *Pipe { |
| 117 | return NewPipe().Get(url) |
| 118 | } |
| 119 | |
| 120 | // IfExists tests whether path exists, and creates a pipe whose error status |
| 121 | // reflects the result. If the file doesn't exist, the pipe's error status will |