Post creates a pipe that makes an HTTP POST request to url, with an empty body, and produces the response. See [Pipe.Do] for how the HTTP response status is interpreted.
(url string)
| 181 | // body, and produces the response. See [Pipe.Do] for how the HTTP response |
| 182 | // status is interpreted. |
| 183 | func Post(url string) *Pipe { |
| 184 | return NewPipe().Post(url) |
| 185 | } |
| 186 | |
| 187 | // Slice creates a pipe containing each element of s, one per line. If s is |
| 188 | // empty or nil, then the pipe is empty. |