Date | 2022-05-09 (962 days ago) |
---|---|
Downloads | 23K downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET Standard 1.3 .NET Standard 2.0 .NET 4.5 .NET 4.6 .NET 4.7 |
#installation
">InstallationInstall 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">Breaking changesGetResponseAsync
methods to the IHttpRequest
and HttpRequest
types (see 792c3aa
)IHttpRequest
interface.#other
-changes">Other changesIntroduced 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 insteadIGetOptions
should be replaced by IHttpRequestOptions
along with the GetResponse
methodIPostOptions
should be replaced by IHttpRequestOptions
along with the GetResponse
method