Skip to content

Delete Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Task<HttpTransaction> Delete(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> Delete(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 DELETE request to the specified URL and returns a WebClient object containing the response data.

Parameters ​

NameDescription
cancellationTokenCancellationToken
contentTypeThe content type of the request payload.
cookiesThe cookies to be sent with the request.
credentialsThe credentials to be used for authentication.
encodingThe character encoding to use for the request
headersThe custom headers to be added to the request.
payloadThe payload of the request.
urlThe URL to which the request is sent.
userAgentThe user agent string used in the request header.

Returns ​

A WebClient object containing the response data.