v1.1.3
Installation
Install 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
-
Introduced new
HttpExceptionclass (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 includeThrowIfNotSuccessful, which will trigger an exception if the status code of aIHttpResponseis not either 200 OK or 201 Created. -
Added
ResponseUriproperty to theHttpResponseBaseclass (see b4bcc5d)
TheIHttpResponseinterface already describes aResponseUriproperty, and asHttpResponseBasewraps an instanceIHttpResponse, it might as well expose the underlyingResponseUri.