MCPcopy
hub / github.com/bitfield/script / NewPipe

Function NewPipe

script.go:170–178  ·  view source on GitHub ↗

NewPipe creates a new pipe with an empty reader (use [Pipe.WithReader] to attach another reader to it).

()

Source from the content-addressed store, hash-verified

168// NewPipe creates a new pipe with an empty reader (use [Pipe.WithReader] to
169// attach another reader to it).
170func 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

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…