/DotnetFetch

🌎 Simple .NET implementation of JavaScript fetch API

Primary LanguageC#MIT LicenseMIT

DotnetFetch

  • Simple .NET implementation of JavaScript fetch API.
  • Package is on Nuget.
  • Following (partially) the MDN specifications.

Installation

> Install-Package DotnetFetch

Usage

using DotnetFetch;

var result = await GlobalFetch.Fetch("https://jsonplaceholder.typicode.com/todos/1");

Console.WriteLine(result.Text());
using DotnetFetch;

var result = await GlobalFetch.Fetch<string>("https://jsonplaceholder.typicode.com/todos/1");

Console.WriteLine(result);