Skip to content

Commit b7227ec

Browse files
committed
Add MaxRedirects property, DownloadData method, FollowRedirects property, and ClearHandlers method to IRestClient interface.
1 parent 585f943 commit b7227ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

RestSharp/IRestClient.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public interface IRestClient
3333
#if !PocketPC
3434
CookieContainer CookieContainer { get; set; }
3535
#endif
36+
int? MaxRedirects { get; set; }
37+
3638
string UserAgent { get; set; }
3739

3840
int Timeout { get; set; }
@@ -59,6 +61,8 @@ public interface IRestClient
5961
IRestResponse Execute(IRestRequest request);
6062

6163
IRestResponse<T> Execute<T>(IRestRequest request) where T : new();
64+
65+
byte[] DownloadData(IRestRequest request);
6266
#endif
6367

6468
#if FRAMEWORK
@@ -70,6 +74,8 @@ public interface IRestClient
7074
IWebProxy Proxy { get; set; }
7175
#endif
7276

77+
bool FollowRedirects { get; set; }
78+
7379
Uri BuildUri(IRestRequest request);
7480

7581
/// <summary>
@@ -110,6 +116,8 @@ public interface IRestClient
110116

111117
void RemoveHandler(string contentType);
112118

119+
void ClearHandlers();
120+
113121
#if FRAMEWORK
114122
IRestResponse ExecuteAsGet(IRestRequest request, string httpMethod);
115123

0 commit comments

Comments
 (0)