Example #1
0
 /// <summary>
 /// Performs a POST request
 /// </summary>
 /// <param name="client">The SolidHttpClient</param>
 /// <param name="url">The url to be requested</param>
 /// <returns>SolidHttpRequest</returns>
 public static SolidHttpRequest PostAsync(this SolidHttpClient client, Uri url)
 {
     return(client.PostAsync(url, CancellationToken.None));
 }
Example #2
0
 /// <summary>
 /// Performs a POST 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 PostAsync(this SolidHttpClient client, string url, CancellationToken cancellationToken)
 {
     return(client.PostAsync(new Uri(url, UriKind.RelativeOrAbsolute), cancellationToken));
 }
Example #3
0
 /// <summary>
 /// Performs a POST request
 /// </summary>
 /// <param name="client">The SolidHttpClient</param>
 /// <param name="url">The url to be requested</param>
 /// <returns>SolidHttpRequest</returns>
 public static SolidHttpRequest PostAsync(this SolidHttpClient client, string url)
 {
     return(client.PostAsync(new Uri(url, UriKind.RelativeOrAbsolute)));
 }