NewPipe creates a new pipe with an empty reader (use [Pipe.WithReader] to attach another reader to it).
()
| 168 | // NewPipe creates a new pipe with an empty reader (use [Pipe.WithReader] to |
| 169 | // attach another reader to it). |
| 170 | func NewPipe() *Pipe { |
| 171 | return &Pipe{ |
| 172 | Reader: ReadAutoCloser{}, |
| 173 | mu: new(sync.Mutex), |
| 174 | stdout: os.Stdout, |
| 175 | httpClient: http.DefaultClient, |
| 176 | env: nil, |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | // Post creates a pipe that makes an HTTP POST request to url, with an empty |
| 181 | // body, and produces the response. See [Pipe.Do] for how the HTTP response |
no outgoing calls
searching dependent graphs…