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.
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.
// Install RextHttpClient as a Cake Addin
#addin nuget:?package=RextHttpClient&version=1.0.23

// Install RextHttpClient as a Cake Tool
#tool nuget:?package=RextHttpClient&version=1.0.23

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. 
.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 128 9/16/2023
1.0.22 269 3/10/2023
1.0.20 255 3/9/2023
1.0.19 260 2/13/2023
1.0.18 281 2/13/2023
1.0.17 289 2/9/2023
1.0.16 272 2/7/2023
1.0.14 361 11/2/2022
1.0.13 411 8/18/2022
1.0.11 435 6/10/2022
1.0.10 581 2/21/2022
1.0.9 584 11/4/2021
1.0.8 4,094 4/22/2021
1.0.8-beta1 428 2/22/2021
1.0.7 460 12/11/2020
1.0.6 430 7/21/2020
1.0.4 556 12/10/2019
1.0.3 520 10/27/2019
1.0.3-beta 442 10/24/2019
1.0.2 494 10/24/2019
1.0.1 530 9/18/2019
1.0.0.1 531 9/9/2019

Http resiliency to retry certain statuscodes at intervals