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
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 includeThrowIfNotSuccessful
, which will trigger an exception if the status code of aIHttpResponse
is not either 200 OK or 201 Created. -
Added
ResponseUri
property to theHttpResponseBase
class (see b4bcc5d)
TheIHttpResponse
interface already describes aResponseUri
property, and asHttpResponseBase
wraps an instanceIHttpResponse
, it might as well expose the underlyingResponseUri
.