Date | 2023-02-05 (690 days ago) |
---|---|
Downloads | 339 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 .NET 5 .NET 6 |
#installation
">InstallationInstall the NuGet package - either via the .NET CLI:
dotnet add package Skybrud.Essentials.Http --version 1.1.3
or the NuGet package manager:
Install-Package Skybrud.Essentials.Http -Version 1.1.3
#changelog
">ChangelogIntroduced new HttpException
class (see 84dadf8
)
The new class provides a concrete implementation of the "IHttpException" interface, and may be used to represent various HTTP errors.
Added various extension methods for working with IHttpResponse
(see af6c7c4
)
The extension methods include ThrowIfNotSuccessful
, which will trigger an exception if the status code of a IHttpResponse
is not either 200 OK or 201 Created.
Added ResponseUri
property to the HttpResponseBase
class (see b4bcc5d
)
The IHttpResponse
interface already describes a ResponseUri
property, and as HttpResponseBase
wraps an instance IHttpResponse
, it might as well expose the underlying ResponseUri
.