RextHttpClient 1.0.23

dotnet add package RextHttpClient --version 1.0.23
                    
NuGet\Install-Package RextHttpClient -Version 1.0.23
                    
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="RextHttpClient" Version="1.0.23" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RextHttpClient" Version="1.0.23" />
                    
Directory.Packages.props
<PackageReference Include="RextHttpClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RextHttpClient --version 1.0.23
                    
#r "nuget: RextHttpClient, 1.0.23"
                    
#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.
#addin nuget:?package=RextHttpClient&version=1.0.23
                    
Install RextHttpClient as a Cake Addin
#tool nuget:?package=RextHttpClient&version=1.0.23
                    
Install RextHttpClient as a Cake Tool

RextHttpClient

------------ : REXT HTTP CLIENT : ------------

Simple HttpClient wrapper to speed up your Http task. Safely handles request with JSON, XML and Form Data.

Basic Usage

All basic API operations have been made available for quick access via IRextHttpClient. If you wish to make a direct call and handle deserialization yourself, then call _rext.MakeRequest method.

IRextHttpClient _rext = new RextHttpClient(); // create new instance via new or DI

Make http call with result deserialized to object.

string url = "http://myapp.com/api/employee/getemployee";
var rsp = await _rext.GetJSON<@Person>(url); // download json
var rsp = await _rext.GetXML<@Person>(url); // download xml
var rsp = await _rext.GetString(url); // download string

Console.WriteLine($"{rsp.StatusCode} - {rsp.Message} - 
Duration: {_rext.Stopwatch?.ElapsedMilliseconds}ms"); // get duration of http call
Console.WriteLine(rsp?.Data); // get deserialized result as object

All Rext methods for http call have overloads for adding more options to suit your need. You supply a type of T and the result from the call is deserialized into it. To retrieve the result you have to check if the call was successful with _rext.IsSuccess, if the value is true then access the data with _rext.Data.

Note: Only successful responses (200) are deserialized by default. to allow deserialization for all response types, set RextOptions.DeserializeSuccessResponseOnly = false or from the global configuration section

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.0.23 196 9/16/2023
1.0.22 315 3/10/2023
1.0.20 301 3/9/2023 1.0.20 is deprecated because it has critical bugs.
1.0.19 303 2/13/2023
1.0.18 326 2/13/2023 1.0.18 is deprecated.
1.0.17 326 2/9/2023
1.0.16 316 2/7/2023
1.0.14 403 11/2/2022
1.0.13 461 8/18/2022
1.0.11 493 6/10/2022
1.0.10 742 2/21/2022
1.0.9 634 11/4/2021
1.0.8 5,094 4/22/2021
1.0.8-beta1 481 2/22/2021
1.0.7 522 12/11/2020
1.0.6 498 7/21/2020
1.0.4 616 12/10/2019
1.0.3 592 10/27/2019
1.0.3-beta 517 10/24/2019 1.0.3-beta is deprecated.
1.0.2 547 10/24/2019
1.0.1 589 9/18/2019
1.0.0.1 585 9/9/2019

Http resiliency to retry certain statuscodes at intervals