Skip to content

Conversation

issafram
Copy link
Contributor

I use the IRestClient interface for unit tests, etc.

The interface is currently missing:
Methods AddHandler, RemoveHandler, DownloadData, and ClearHandlers.
Properties MaxRedirects, and FollowRedirects.

I added a unit test to check the differences between the RestClient class and the IRestClient interface.

This would be a nice addition.

Let me know what you think or if something is missing.

@issafram issafram changed the title Added AddHandler and RemoveHandler methods to IRestClient inteface. Add AddHandler, RemoveHandler, DownloadData and ClearHandlers methods to IRestClient inteface. Add MaxRedirects and FollowRedirects property to IRestClient interface. Mar 19, 2015
@issafram issafram changed the title Add AddHandler, RemoveHandler, DownloadData and ClearHandlers methods to IRestClient inteface. Add MaxRedirects and FollowRedirects property to IRestClient interface. Add AddHandler, RemoveHandler, DownloadData and ClearHandlers methods to IRestClient inteface. Add MaxRedirects and FollowRedirects properties to IRestClient interface. Mar 19, 2015
@hallem
Copy link
Member

hallem commented Mar 20, 2015

Thanks for the PR. I've taken a quick look and everything looks ok to me. I'll run the tests and make sure all the platforms compile and then merge it in.

hallem added a commit that referenced this pull request Mar 23, 2015
Add AddHandler, RemoveHandler, DownloadData and ClearHandlers methods to IRestClient inteface. Add MaxRedirects and FollowRedirects properties to IRestClient interface.
@hallem hallem merged commit 0cdf399 into restsharp:master Mar 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants