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

Method Write

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

NewUntrustedBytesFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected