Skip to content

Commit 585f943

Browse files
committed
Added AddHandler and RemoveHandler methods to IRestClient inteface.
1 parent 0b6ffe8 commit 585f943

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RestSharp/IRestClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using System.Collections.Generic;
2020
using System.Security.Cryptography.X509Certificates;
2121
using System.Text;
22+
using RestSharp.Deserializers;
2223

2324
#if NET4 || MONODROID || MONOTOUCH || WP8
2425
using System.Threading;
@@ -105,6 +106,10 @@ public interface IRestClient
105106
/// <param name="httpMethod">The HTTP method to execute</param>
106107
RestRequestAsyncHandle ExecuteAsyncPost<T>(IRestRequest request, Action<IRestResponse<T>, RestRequestAsyncHandle> callback, string httpMethod);
107108

109+
void AddHandler(string contentType, IDeserializer deserializer);
110+
111+
void RemoveHandler(string contentType);
112+
108113
#if FRAMEWORK
109114
IRestResponse ExecuteAsGet(IRestRequest request, string httpMethod);
110115

0 commit comments

Comments
 (0)