- Simple .NET implementation of JavaScript fetch API.
- Package is on Nuget.
- Following (partially) the MDN specifications.
> Install-Package DotnetFetch
using static DotnetFetch.GlobalFetch;
var result = await Fetch("https://jsonplaceholder.typicode.com/todos/1");
Console.WriteLine(result.Text());
using static DotnetFetch.GlobalFetch;
var result = await Fetch<string>("https://jsonplaceholder.typicode.com/todos/1");
Console.WriteLine(result);