We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't think this class is actually being helpful. Here is our code:
public static class RestSharpExtensions { public static bool IsSuccessful(this IRestResponse response) { return (int) response.StatusCode >= 200 && (int) response.StatusCode <= 299 && response.ResponseStatus == ResponseStatus.Completed; } }
and here is the IsSuccessful method from RestSharp Response class directly
IsSuccessful
public bool IsSuccessful => (int) StatusCode >= 200 && (int) StatusCode <= 299 && ResponseStatus == ResponseStatus.Completed;
These do the exact same thing. So it would be best to drop this class entirely unless there is a need for it.
The text was updated successfully, but these errors were encountered:
created PR for this #40
Sorry, something went wrong.
No branches or pull requests
I don't think this class is actually being helpful. Here is our code:
and here is the
IsSuccessful
method from RestSharp Response class directlyThese do the exact same thing. So it would be best to drop this class entirely unless there is a need for it.
The text was updated successfully, but these errors were encountered: