()
| 1624 | } |
| 1625 | |
| 1626 | func (r *RedirectionError) Error() string { |
| 1627 | return fmt.Sprintf("%v %v: %v location %v", |
| 1628 | r.Response.Request.Method, sanitizeURL(r.Response.Request.URL), |
| 1629 | r.StatusCode, sanitizeURL(r.Location)) |
| 1630 | } |
| 1631 | |
| 1632 | // Is returns whether the provided error equals this error. |
| 1633 | func (r *RedirectionError) Is(target error) bool { |
nothing calls this directly
no test coverage detected