@@ -21,32 +21,6 @@ public virtual async Task<IHttpResponse> PatchAsync(string url) {
2121 return await GetResponseAsync ( HttpRequest . Patch ( url ) ) ;
2222 }
2323
24- /// <summary>
25- /// Makes a PATCH request to the specified <paramref name="url"/>.
26- /// </summary>
27- /// <param name="url">The URL of the request.</param>
28- /// <param name="options">The options for the call to the specified <paramref name="url"/>.</param>
29- /// <returns>An instance of <see cref="IHttpResponse"/> representing the response.</returns>
30- [ Obsolete ( "Use 'GetResponse' method and 'IHttpRequestOptions' class as parameter instead." ) ]
31- public virtual async Task < IHttpResponse > PatchAsync ( string url , IHttpGetOptions options ) {
32- if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
33- if ( options == null ) throw new ArgumentNullException ( nameof ( options ) ) ;
34- return await GetResponseAsync ( HttpRequest . Patch ( url , options . GetQueryString ( ) ) ) ;
35- }
36-
37- /// <summary>
38- /// Makes a PATCH request to the specified <paramref name="url"/>.
39- /// </summary>
40- /// <param name="url">The URL of the request.</param>
41- /// <param name="options">The options for the call to the specified <paramref name="url"/>.</param>
42- /// <returns>An instance of <see cref="IHttpResponse"/> representing the response.</returns>
43- [ Obsolete ( "Use 'GetResponse' method and 'IHttpRequestOptions' class as parameter instead." ) ]
44- public virtual async Task < IHttpResponse > PatchAsync ( string url , IHttpPostOptions options ) {
45- if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
46- if ( options == null ) throw new ArgumentNullException ( nameof ( options ) ) ;
47- return await GetResponseAsync ( HttpRequest . Patch ( url , options . GetQueryString ( ) , options . GetPostData ( ) ) ) ;
48- }
49-
5024 /// <summary>
5125 /// Makes a PATCH request to the specified <paramref name="url"/>.
5226 /// </summary>
0 commit comments