fm.Extensions.HttpClient 5.0.0-preview.12

This is a prerelease version of fm.Extensions.HttpClient.
There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package fm.Extensions.HttpClient --version 5.0.0-preview.12
NuGet\Install-Package fm.Extensions.HttpClient -Version 5.0.0-preview.12
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="fm.Extensions.HttpClient" Version="5.0.0-preview.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add fm.Extensions.HttpClient --version 5.0.0-preview.12
#r "nuget: fm.Extensions.HttpClient, 5.0.0-preview.12"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install fm.Extensions.HttpClient as a Cake Addin
#addin nuget:?package=fm.Extensions.HttpClient&version=5.0.0-preview.12&prerelease

// Install fm.Extensions.HttpClient as a Cake Tool
#tool nuget:?package=fm.Extensions.HttpClient&version=5.0.0-preview.12&prerelease

Extensions for System.Net.Http (especially HttpClient). Provides convenient methods like GetVerified, PostVerified, PostAsJsonVerified and more which take care of error handling for you.

Also supports RFC 7807 (Problem Details).

Commonly Used Types

  • HttpClientExtensions
    • GetVerified
    • GetWithResult
    • PostVerified
    • PostAsJsonVerified
    • PostWithResult
    • PostAsJsonWithResult
    • and more for Put, Patch and Delete
  • HttpResponseHandler
  • HttpErrorResponseHandler
  • HttpLoggingHandler
  • HttpLoggingHandlerOptions
  • HttpResponseException
  • HttpStatusCodeException
  • ProblemDetails
  • ProblemDetailsHandler
  • MediaType
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.0 98 3/27/2024
5.0.0 500 3/4/2023
4.0.0 1,767 11/30/2020
3.2.0 608 8/25/2020
2.0.0 2,606 10/9/2017
1.3.0 1,075 8/5/2017
1.2.0 1,516 3/2/2017
1.1.0 1,348 6/29/2016

* BREAKING: Target .NET 7, dropping .NET Standard
* BREAKING: Use System.Net.Http.Json instead of Microsoft.AspNet.WebApi.Client
* Use nullable annotations
* Deserialize JSON only when receiving 'application/json' media type
* Post/Put can have an optional HttpContent (e.g. Graph API uses empty POST requests)
* Added PatchVerified(...) now supporting PATCH
* Added GetWithResult(...), PostWithResult(...) and PostAsJsonWithResult(...) all expecting TResult (with nullable annotations)
* Use CancellationToken when deserializing JSON
* Fix: HttpStatusCodeException.StatusCode is now also set in base HttpRequestException
* HttpLoggingHandler now reports non-success status codes as Warning