/// <summary>
 /// Submits the http post request to the specified uri.
 /// </summary>
 /// <param name="uri">The uri to which the post request will be issued.</param>
 /// <param name="requestContent">Optional content containing data for the request body.</param>
 /// <returns>Task tracking the completion of the POST request</returns>
 public Task <Stream> PostAsync(
     Uri uri,
     HttpContent requestContent) => HttpRest.PostAsync(this.HttpClient, uri, requestContent);
Example #2
0
 /// <summary>
 /// Submits the http get request to the specified uri.
 /// </summary>
 /// <param name="uri">The uri to which the get request will be issued.</param>
 /// <returns>Response data as a stream.</returns>
 public Task <Stream> GetAsync(Uri uri) => HttpRest.GetAsync(this.HttpClient, uri);
 /// <summary>
 /// Submits the http put request to the specified uri.
 /// </summary>
 /// <param name="uri">The uri to which the put request will be issued.</param>
 /// <param name="body">The HTTP content comprising the body of the request.</param>
 /// <returns>Task tracking the PUT completion.</returns>
 public Task <Stream> PutAsync(
     Uri uri,
     HttpContent body = null) => HttpRest.PutAsync(this.HttpClient, uri, body);
Example #4
0
 /// <summary>
 /// Submits the http delete request to the specified uri.
 /// </summary>
 /// <param name="uri">The uri to which the delete request will be issued.</param>
 /// <returns>Task tracking HTTP completion</returns>
 public Task <Stream> DeleteAsync(Uri uri) => HttpRest.DeleteAsync(this.HttpClient, uri);