WithError sets the error err on the pipe.
(err error)
| 975 | |
| 976 | // WithError sets the error err on the pipe. |
| 977 | func (p *Pipe) WithError(err error) *Pipe { |
| 978 | p.SetError(err) |
| 979 | return p |
| 980 | } |
| 981 | |
| 982 | // WithHTTPClient sets the HTTP client c for use with subsequent requests via |
| 983 | // [Pipe.Do], [Pipe.Get], or [Pipe.Post]. For example, to make a request using |