Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Hansen polterguy

View GitHub Profile
@polterguy
polterguy / HttpClient.cs
Created May 10, 2019
A C# class to easily invoke HTTP REST invocations with one line of code
View HttpClient.cs
/*
* Usage ...
* var foo = new SomeType { /*.Decorate instance here ... */ };
* var result = await Client.PostAsync<SomeType>("https://some-url.com/api", foo);
*/
using System;
using System.Net.Http;
using System.Threading.Tasks;
You can’t perform that action at this time.