Appearance
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
| Name | Description |
|---|---|
cancellationToken | CancellationToken |
cookies | A collection of cookies to include in the request. |
credentials | The credentials to use for authentication, if required. |
headers | A dictionary of additional headers to include in the request. |
url | The URL to which the request is sent. |
userAgent | The user agent string to include in the request headers. |
Returns
A Task that represents the asynchronous operation.