MCPcopy Index your code
hub / github.com/bitfield/script / Post

Function Post

script.go:183–185  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

181// body, and produces the response. See [Pipe.Do] for how the HTTP response
182// status is interpreted.
183func 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.

Callers

nothing calls this directly

Calls 2

NewPipeFunction · 0.85
PostMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…