Exemplo n.º 1
0
 /// <summary>
 /// Performs a GET request
 /// </summary>
 /// <param name="client">The SolidHttpClient</param>
 /// <param name="url">The url to be requested</param>
 /// <returns>SolidHttpRequest</returns>
 public static SolidHttpRequest GetAsync(this SolidHttpClient client, Uri url)
 {
     return(client.GetAsync(url, CancellationToken.None));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Performs a GET request
 /// </summary>
 /// <param name="client">The SolidHttpClient</param>
 /// <param name="url">The url to be requested</param>
 /// <param name="cancellationToken">The cancellation token for the request</param>
 /// <returns>SolidHttpRequest</returns>
 public static SolidHttpRequest GetAsync(this SolidHttpClient client, string url, CancellationToken cancellationToken)
 {
     return(client.GetAsync(new Uri(url, UriKind.RelativeOrAbsolute), cancellationToken));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Performs a GET request
 /// </summary>
 /// <param name="client">The SolidHttpClient</param>
 /// <param name="url">The url to be requested</param>
 /// <returns>SolidHttpRequest</returns>
 public static SolidHttpRequest GetAsync(this SolidHttpClient client, string url)
 {
     return(client.GetAsync(new Uri(url, UriKind.RelativeOrAbsolute)));
 }