@@ -342,6 +342,75 @@ public static void Put<T>(RequestHelper options, Action<RequestException, Respon
342
342
Request ( options , callback ) ;
343
343
}
344
344
345
+ /// <summary>
346
+ /// Load data from the server using a HTTP PATCH request.
347
+ /// </summary>
348
+ /// <param name="url">A string containing the URL to which the request is sent.</param>
349
+ /// <param name="body">A plain object that is sent to the server with the request.</param>
350
+ /// <param name="callback">A callback function that is executed when the request is finished.</param>
351
+ public static void Patch ( string url , object body , Action < RequestException , ResponseHelper > callback )
352
+ {
353
+ Patch ( new RequestHelper { Uri = url , Body = body } , callback ) ;
354
+ }
355
+
356
+ /// <summary>
357
+ /// Load data from the server using a HTTP PATCH request.
358
+ /// </summary>
359
+ /// <param name="url">A string containing the URL to which the request is sent.</param>
360
+ /// <param name="bodyString">A string that is sent to the server with the request.</param>
361
+ /// <param name="callback">A callback function that is executed when the request is finished.</param>
362
+ public static void Patch ( string url , string bodyString , Action < RequestException , ResponseHelper > callback )
363
+ {
364
+ Patch ( new RequestHelper { Uri = url , BodyString = bodyString } , callback ) ;
365
+ }
366
+
367
+ /// <summary>
368
+ /// Load data from the server using a HTTP PATCH request.
369
+ /// </summary>
370
+ /// <param name="options">The options of the request.</param>
371
+ /// <param name="callback">A callback function that is executed when the request is finished.</param>
372
+ public static void Patch ( RequestHelper options , Action < RequestException , ResponseHelper > callback )
373
+ {
374
+ options . Method = "PATCH" ;
375
+ Request ( options , callback ) ;
376
+ }
377
+
378
+ /// <summary>
379
+ /// Load data from the server using a HTTP PATCH request.
380
+ /// </summary>
381
+ /// <param name="url">A string containing the URL to which the request is sent.</param>
382
+ /// <param name="body">A plain object that is sent to the server with the request.</param>
383
+ /// <param name="callback">A callback function that is executed when the request is finished.</param>
384
+ /// <typeparam name="T">The element type of the response.</typeparam>
385
+ public static void Patch < T > ( string url , object body , Action < RequestException , ResponseHelper , T > callback )
386
+ {
387
+ Patch < T > ( new RequestHelper { Uri = url , Body = body } , callback ) ;
388
+ }
389
+
390
+ /// <summary>
391
+ /// Load data from the server using a HTTP PATCH request.
392
+ /// </summary>
393
+ /// <param name="url">A string containing the URL to which the request is sent.</param>
394
+ /// <param name="bodyString">A string that is sent to the server with the request.</param>
395
+ /// <param name="callback">A callback function that is executed when the request is finished.</param>
396
+ /// <typeparam name="T">The element type of the response.</typeparam>
397
+ public static void Patch < T > ( string url , string bodyString , Action < RequestException , ResponseHelper , T > callback )
398
+ {
399
+ Patch < T > ( new RequestHelper { Uri = url , BodyString = bodyString } , callback ) ;
400
+ }
401
+
402
+ /// <summary>
403
+ /// Load data from the server using a HTTP PATCH request.
404
+ /// </summary>
405
+ /// <param name="options">The options of the request.</param>
406
+ /// <param name="callback">A callback function that is executed when the request is finished.</param>
407
+ /// <typeparam name="T">The element type of the response.</typeparam>
408
+ public static void Patch < T > ( RequestHelper options , Action < RequestException , ResponseHelper , T > callback )
409
+ {
410
+ options . Method = "PATCH" ;
411
+ Request ( options , callback ) ;
412
+ }
413
+
345
414
/// <summary>
346
415
/// Delete the specified resource identified by the URI.
347
416
/// </summary>
0 commit comments