(err error, code int)
| 172 | } |
| 173 | |
| 174 | func errIsStatus(err error, code int) bool { |
| 175 | var errRes *ErrorResponse |
| 176 | return errors.As(err, &errRes) && errRes.StatusCode == code |
| 177 | } |
| 178 | |
| 179 | func (c *Connection) NewRequest(ctx context.Context, method, path string, body any) *Request { |
| 180 | req := newRequest(ctx, c.hostURL, c.defaultHeader.Clone()) |
no outgoing calls
no test coverage detected