qckdev.Net.Http 0.6.0-beta

This is a prerelease version of qckdev.Net.Http.
There is a newer version of this package available.
See the version list below for details.
dotnet add package qckdev.Net.Http --version 0.6.0-beta
                    
NuGet\Install-Package qckdev.Net.Http -Version 0.6.0-beta
                    
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="qckdev.Net.Http" Version="0.6.0-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="qckdev.Net.Http" Version="0.6.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="qckdev.Net.Http" />
                    
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 qckdev.Net.Http --version 0.6.0-beta
                    
#r "nuget: qckdev.Net.Http, 0.6.0-beta"
                    
#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=qckdev.Net.Http&version=0.6.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=qckdev.Net.Http&version=0.6.0-beta&prerelease
                    
Install as a Cake Tool

<a href="https://www.nuget.org/packages/qckdev.Net.Http"><img src="https://img.shields.io/nuget/v/qckdev.Net.Http.svg" alt="NuGet Version"/></a> <a href="https://sonarcloud.io/dashboard?id=qckdev.Net.Http"><img src="https://sonarcloud.io/api/project_badges/measure?project=qckdev.Net.Http&metric=alert_status" alt="Quality Gate"/></a> <a href="https://sonarcloud.io/dashboard?id=qckdev.Net.Http"><img src="https://sonarcloud.io/api/project_badges/measure?project=qckdev.Net.Http&metric=coverage" alt="Code Coverage"/></a> <a><img src="https://hfrances.visualstudio.com/Main/_apis/build/status/qckdev.Net.Http?branchName=main" alt="Azure Pipelines Status"/></a>

qckdev.Net.Http

Provides extensions to System.Net.Http namespace.

using System;	

namespace Entities
{
	sealed class Species
	{
		public string Name { get; set; }
		public string Url { get; set; }
	}

	sealed class Pokemon
	{
		public int Id { get; set; }
		public string Name { get; set; }
		public int Order { get; set; }

		public Species Species { get; set; }

	}
}
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using qckdev.Net.Http;

const string URL = "https://pokeapi.co/api/v2/";

using (var client = new HttpClient() { BaseAddress = new Uri(URL) })
{
	Entities.Pokemon rdo;

	rdo = await client.Fetch<Entities.Pokemon>(HttpMethod.Get, "pokemon/ditto");
}

Example for enumerations


enum Visibility {
  Visible,
  Hidden  
}

sealed class Example {

  public int Id { get; set; }

  // Choose one of these attributes depending on the targeting framework.
  [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
  [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
  public Visibility Visibility { get; set; }

}

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.2 is compatible.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 is compatible.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wpa81 was computed. 
Windows Store netcore451 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 (1)

Showing the top 1 NuGet packages that depend on qckdev.Net.Http:

Package Downloads
TusClientLibrary

Provides access to upload and download large files to Azure Blob Storage using TUS protocol.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.5 147 6/3/2025
1.2.4 489 12/11/2024
1.2.3 890 7/23/2024
1.2.2 152 7/4/2024
1.2.1 550 3/2/2024
1.0.0 570 3/29/2023
0.9.2-beta 216 11/25/2022
0.9.0-beta 204 11/23/2022
0.8.0-beta 201 11/17/2022
0.7.0-beta 269 9/7/2022
0.6.0-beta 224 7/25/2022
0.4.3-beta 529 10/6/2021
0.4.2-beta.1 231 10/6/2021
0.4.2-beta 278 10/6/2021
0.4.1-beta 271 10/2/2021
0.4.0-beta 280 10/1/2021