Appearance
Patch Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Task<HttpTransaction> Patch(string url, string contentType = null, string userAgent = null, IReadOnlyDictionary<string, string> headers = null, string payload = null, ClientCredential credentials = null, CookieCollection cookies = null, Encoding encoding = null, CancellationToken cancellationToken = null)
csharp
Task<HttpTransaction> Patch(string url, string contentType = null, string userAgent = null, IReadOnlyDictionary<string, string> headers = null, string payload = null, ClientCredential credentials = null, CookieCollection cookies = null, Encoding encoding = null, CancellationToken cancellationToken = null)Sends an HTTP PATCH request to the specified URL and returns a WebClient object that represents the response.
Parameters
| Name | Description |
|---|---|
cancellationToken | CancellationToken |
contentType | The content type of the payload. |
cookies | The cookies to include in the request. |
credentials | The client authentication credentials to use for the request. |
encoding | The character encoding to use for the request and response. |
headers | A dictionary of additional headers to include in the request. |
payload | The payload to send in the request body. |
url | The URL to send the request to. |
userAgent | The user agent string to include in the request header. |
Returns
A WebClient object that represents the response.