Read-only HTTP file system support for TagBites.IO. Browse and read files published over plain HTTP through the same FileSystem API used for local disk and other storages.
Each directory carries an index file, .dirls or .dirrls, describing its contents. TagBites.IO.Http reads that index, so the web server needs no directory listing support of its own.
dotnet add package TagBites.IO.Http
Targets netstandard2.0. No dependencies beyond TagBites.IO.
using var fs = HttpFileSystem.Create("https://example.com/files");
var file = fs.GetFile("/reports/summary.txt");
var content = file.ReadAllText();
foreach (var link in fs.GetDirectory("/reports").GetFiles())
Console.WriteLine(link.FullName);Connection options, capabilities and limits: documentation.