-
Notifications
You must be signed in to change notification settings - Fork 1.7k
"pub serve" should support index.html and directory listing #15020
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
Comments
Issue #15622 has been merged into this issue. |
also directory listing :) Changed the title to: ""pub serve" should support index.html and directory listing". |
What semantics do we want here? If you request "foo/bar" that could either be:
Is the idea that we try 1 and if it fails with an asset not found, we then try 2? |
Implementation-wise, that seems right. Semantically, it's not possible for an asset and a directory named "foo/bar" to exist at the same time. |
Removed Type-Defect label. |
Removed Priority-Unassigned label. |
Marked this as blocking #15859. |
Unmarked this as blocking #15859. |
Marked this as blocking #15830. |
How much of a web server is pub serve? (Not rhetorical, I don't understand the scope) We have the http_server package which does virtual directories, index.html resolution, mime types, etc. Is pub serve supposed to provide all those services or could it act as a "filter" or "handler" when a request needs something transformed in real time? |
cc @kevmoo. |
Ideally we'd like "pub serve" to support index.html and mime types for sure. I'm less keen on virtual directories.
I'm not sure what this means. Can you give an example? |
Added DevStory label. |
Issue #16438 has been merged into this issue. |
Fixed by r32615. Added Fixed label. |
This issue has been moved to dart-lang/pub#716. |
It's a common convention for servers to serve "/dir/index.html" when a user requests "/dir" or "/dir/". "pub serve" should follow this convention as well.
The text was updated successfully, but these errors were encountered: