Skip to content

v1.1.3

Compare
Choose a tag to compare
@abjerner abjerner released this 05 Feb 15:18
· 31 commits to v1/main since this release

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 include ThrowIfNotSuccessful, which will trigger an exception if the status code of a IHttpResponseis 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.