Skip to content

Commit

Permalink
Added Post method with a single parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Sep 7, 2019
1 parent e7ceb8d commit d157930
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Skybrud.Essentials.Http/HttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,14 @@ public static HttpRequest Get(string url, IHttpQueryString queryString) {
return new HttpRequest(HttpMethod.Get, url, queryString);
}

/// <summary>
/// Initializes a new POST request based on the specified <paramref name="url"/>.
/// </summary>
/// <param name="url">The URL of the request.</param>
public static HttpRequest Post(string url) {
return new HttpRequest(HttpMethod.Post, url);
}

/// <summary>
/// Initializes a new POST request based on the specified <paramref name="url"/>.
/// </summary>
Expand Down

0 comments on commit d157930

Please sign in to comment.