Skip to content

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 ​

NameDescription
cancellationTokenCancellationToken
contentTypeThe content type of the payload.
cookiesThe cookies to include in the request.
credentialsThe client authentication credentials to use for the request.
encodingThe character encoding to use for the request and response.
headersA dictionary of additional headers to include in the request.
payloadThe payload to send in the request body.
urlThe URL to send the request to.
userAgentThe user agent string to include in the request header.

Returns ​

A WebClient object that represents the response.