This PR inherits a lot of the changes that @gdebrauwer originally proposed, so thank you very much for figuring out that issue!
This PR changes the way the hasRequestFailed method works. Previously it would only work if you returned true, useful for APIs that have an invalid HTTP status code. However, @gdebrauwer discovered that if you wanted to tell Saloon that a request has not failed even if it has a valid HTTP status, this did not work.
Closes #314
This PR inherits a lot of the changes that @gdebrauwer originally proposed, so thank you very much for figuring out that issue!
This PR changes the way the
hasRequestFailed
method works. Previously it would only work if you returnedtrue
, useful for APIs that have an invalid HTTP status code. However, @gdebrauwer discovered that if you wanted to tell Saloon that a request has not failed even if it has a valid HTTP status, this did not work.