v1.1.0
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 newGetResponseAsync
methods to theIHttpRequest
andHttpRequest
types (see 792c3aa)
This is a breaking change since the release adds a new method to theIHttpRequest
interface.
Other changes
-
Introduced new
IHttpClientAsync
interface (see 7e01cfb)
The new interface serves an async counterpart of the existingIHttpClient
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 forIHttpRequest
(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. UseGet
,Post
,Patch
,Put
andDelete
methods instead- Usage of
IGetOptions
should be replaced byIHttpRequestOptions
along with theGetResponse
method - Usage of
IPostOptions
should be replaced byIHttpRequestOptions
along with theGetResponse
method