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

Add support for serving directory listing #329

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Conversation

notthetup
Copy link
Collaborator

@notthetup notthetup commented Oct 7, 2024

This adds a new option to the WebServer.add API called directoryListing, which allows directories to be listed over HTTP either

  • using Content-Type: text/plain in which case the files in a directory will be listed as
boo.txt 12 1728272211249
  • using Content-Type: application/json in which case the files in a directory will be listed as
[{"name":"boo.txt","size":12,"date":1728272211249}]

Also ,

  • all the options are moved into a WebServerOptions object for future extension.
  • directoryListing is ignored when serving resources from jars

@notthetup notthetup merged commit af88dde into master Oct 8, 2024
2 checks passed
@notthetup notthetup deleted the fjage-serve-dir branch October 8, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants