Skip to content

v1.1.0

Compare
Choose a tag to compare
@abjerner abjerner released this 09 May 10:42
· 35 commits to v1/main since this release

Installation

Install the NuGet package - either via the .NET CLI:

dotnet add package Skybrud.Essentials.Http --version 1.1.0

or the NuGet package manager:

Install-Package Skybrud.Essentials.Http -Version 1.1.0

Breaking changes

  • 🅱️ Added new GetResponseAsync methods to the IHttpRequest and HttpRequest types (see 792c3aa)
    This is a breaking change since the release adds a new method to the IHttpRequest interface.

Other changes

  • Introduced new IHttpClientAsync interface (see 7e01cfb)
    The new interface serves an async counterpart of the existing IHttpClient interface, which describes methods for making non-async requests.

    This commit also makes the HttpClient class implement the new interface so it can be used for both non-async and async requests.

  • Implemented additional SetBody extension methods for IHttpRequest (see f7b76ac)

  • Added additional constructor overloads to the HttpRequest class (see c9d361b)

  • Added additional HTTP verb method overloads to the HttpRequest class (see 994cf87)

  • Added various extension methods for IHttpClientAsync (see 24edd28 and 87eae0e)

  • Added constants for various content types (see fd79309)

  • Marking a lot of code as obsolete (see da53f8f)
    In order to get a cleaner implementation, this commits marks a lot of code as obsolete:

    • DoHttp{Verb}Request methods should no longer be used. Use Get, Post, Patch, Put and Delete methods instead
    • Usage of IGetOptions should be replaced by IHttpRequestOptions along with the GetResponse method
    • Usage of IPostOptions should be replaced by IHttpRequestOptions along with the GetResponse method