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

Function Do

script.go:51–53  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
51func Do(req *http.Request) *Pipe {
52 return NewPipe().Do(req)
53}
54
55// Echo creates a pipe containing the string s.
56func Echo(s string) *Pipe {

Callers 2

ExampleDoFunction · 0.92

Calls 2

NewPipeFunction · 0.85
DoMethod · 0.80

Tested by 2

ExampleDoFunction · 0.74