The Wayback Machine - https://web.archive.org/web/20200901084646/https://github.com/topics/http-server
Skip to content
#

http-server

Here are 2,154 public repositories matching this topic...

caddy
francislavoie
francislavoie commented Aug 5, 2020

See the discussion here: https://caddy.community/t/v2-http-handlers-templates-functions-in-file-server-browse-template/9214

The file_server directive has a browse option which enables a directory index to be served when a directory is requested. By default, this index is rendered using a template which can be [found in the cod

armeria
ikhoon
ikhoon commented Mar 19, 2020

In our codebase, we push RequestContext and immediately run some code with try-with-resources.
For example:

try (SafeCloseable ignored = ctx.push()) {
    logger.trace(decorate(msg));
}

If RequestContext provides run(Runnable) or call(Callable) we can reduce boilerplate code and simplify it.

ctx.run(() -> logger.trace(decorate(msg));

This is inspired by g

ChristopherDavenport
ChristopherDavenport commented Aug 20, 2020

Discoverabilith of middleware is not as good as it could be. We can create a middlewares page on the site documenting what we have available as well as a community section at the bottom where others can list their middlewares since a lot of our features come from middleware.

Improve this page

Add a description, image, and links to the http-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the http-server topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.