Skip to content

Get Method ​

Definition ​

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

Task<HttpTransaction> Get(string url, string userAgent = null, IReadOnlyDictionary<string, string> headers = null, ClientCredential credentials = null, CookieCollection cookies = null, CancellationToken cancellationToken = null) ​

csharp
Task<HttpTransaction> Get(string url, string userAgent = null, IReadOnlyDictionary<string, string> headers = null, ClientCredential credentials = null, CookieCollection cookies = null, CancellationToken cancellationToken = null)

Sends an HTTP GET request to the specified URL.

Parameters ​

NameDescription
cancellationTokenCancellationToken
cookiesA collection of cookies to include in the request.
credentialsThe credentials to use for authentication, if required.
headersA dictionary of additional headers to include in the request.
urlThe URL to which the request is sent.
userAgentThe user agent string to include in the request headers.

Returns ​

A Task that represents the asynchronous operation.