(p []byte)
| 177 | } |
| 178 | |
| 179 | func (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 | |
| 186 | func NewCachedHTTPClient(httpClient *http.Client, ttl time.Duration) *http.Client { |
| 187 | newClient := *httpClient |
nothing calls this directly
no test coverage detected