Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ZIP archives to be used as resource trees #149

Open
Kaliumhexacyanoferrat opened this issue Nov 25, 2020 · 0 comments
Open

Allow ZIP archives to be used as resource trees #149

Kaliumhexacyanoferrat opened this issue Nov 25, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As a developer, I would like to pass ZIP archives to resource dependent handlers, so that I do not need to extract the archive first.

Example

var archive = Resource.FromFile("./app.zip");

var tree = ResourceTree.FromArchive(archive);

// use the archive for whatever we want to
var app = SinglePageApplication.From(tree); // Listing.From(tree), Resources.From(tree)

Host.Create()
    .Handler(app)
    .Run();

Acceptance criteria

  • The functionality is implemented in the IO module
  • The implementation is thread safe
  • The implementation does access requested ZIP entries on demand without caching them in memory or on file system
  • There are acceptance tests to cover the functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant