You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a new feature request: Please add Equals and GetHashCode methods to RestRequest.
RestRequest objects are essentially specifications for requests. They include almost all the data needed to make a REST request: resource, method, parameters, body, etc. It would be very helpful to add Equals and GetHashCode methods to RestRequest so that different request objects could be compared. For example, if two request objects hold identical request specs, then they should be equal and yield the same hash code value. If they are different, such as one being GET while the other being POST, then they should not be equal, and their hash codes should be different.
(I'm working on a project where I need to implement hash codes for classes that hold RestRequest/IRestRequest instance variables. I could implement my own scheme in my project, but I thought it could potentially be useful for others if RestRequest itself had these methods.)
Please let me know if this feature request is something the project would like to pursue. I'd be happy to try to help. Thanks!
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is a new feature request:
Please add
Equals
andGetHashCode
methods toRestRequest
.RestRequest
objects are essentially specifications for requests. They include almost all the data needed to make a REST request: resource, method, parameters, body, etc. It would be very helpful to addEquals
andGetHashCode
methods toRestRequest
so that different request objects could be compared. For example, if two request objects hold identical request specs, then they should be equal and yield the same hash code value. If they are different, such as one being GET while the other being POST, then they should not be equal, and their hash codes should be different.(I'm working on a project where I need to implement hash codes for classes that hold
RestRequest
/IRestRequest
instance variables. I could implement my own scheme in my project, but I thought it could potentially be useful for others ifRestRequest
itself had these methods.)Please let me know if this feature request is something the project would like to pursue. I'd be happy to try to help. Thanks!
The text was updated successfully, but these errors were encountered: