AspNetCore.Http.Extensions 1.0.1

A library that adds the Json verb methods to the  httpclient

Install-Package AspNetCore.Http.Extensions -Version 1.0.1
dotnet add package AspNetCore.Http.Extensions --version 1.0.1
<PackageReference Include="AspNetCore.Http.Extensions" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.Http.Extensions --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

aspnetcore-httpclientextensions

CircleCI

About ASP.NET Core HttpClient Extensions

Adds extension methods that allow you pass strongly typed objects as parameters to the HttpClient instance.

Usage

To make use of this library, add it to your project from Nuget using any of the following methods.

PM> Install-Package AspNet.Http.Extensions

or

dotnet add package AspNet.Http.Extensions

or

paket add AspNet.Http.Extensions

Add the appropriate namespace to your class

using AspNet.Http.Extensions;

Create an instance of HttpClient

var client = new HttpClient();

Create an instance of your payload class

var payload = new Foo { Name = "Bar" };

Make your HTTP request

var response = client.PostAsJsonAsync('url', payload);

Other methods

the library also provides two other extension methods; PutAsJsonAsync and ReadAsJsonAsync.

aspnetcore-httpclientextensions

CircleCI

About ASP.NET Core HttpClient Extensions

Adds extension methods that allow you pass strongly typed objects as parameters to the HttpClient instance.

Usage

To make use of this library, add it to your project from Nuget using any of the following methods.

PM> Install-Package AspNet.Http.Extensions

or

dotnet add package AspNet.Http.Extensions

or

paket add AspNet.Http.Extensions

Add the appropriate namespace to your class

using AspNet.Http.Extensions;

Create an instance of HttpClient

var client = new HttpClient();

Create an instance of your payload class

var payload = new Foo { Name = "Bar" };

Make your HTTP request

var response = client.PostAsJsonAsync('url', payload);

Other methods

the library also provides two other extension methods; PutAsJsonAsync and ReadAsJsonAsync.

Release Notes

Add support for lower net standar versions

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 60,587 8/15/2018
1.0.0 8,972 12/16/2017