Skip to content

Repository files navigation

TagBites.IO.Http

Nuget .NET Standard 2.0 License Downloads

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.

Install

dotnet add package TagBites.IO.Http

Targets netstandard2.0. No dependencies beyond TagBites.IO.

Usage

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.

Links

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages