MCPcopy Create free account
hub / github.com/cli/cli / Write

Method Write

api/http_client.go:179–184  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

177}
178
179func (s sanitizingWriter) Write(p []byte) (int, error) {
180 if _, err := io.WriteString(s.w, iostreams.NewUntrustedBytes(p).String()); err != nil {
181 return 0, err
182 }
183 return len(p), nil
184}
185
186func NewCachedHTTPClient(httpClient *http.Client, ttl time.Duration) *http.Client {
187 newClient := *httpClient

Callers

nothing calls this directly

Calls 2

NewUntrustedBytesFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected