Skip to content

Instantly share code, notes, and snippets.

Thomas Hansen polterguy

Block or report user

Report or block polterguy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.