molecule
molecule copied to clipboard
An HTTP toolkit for fun and easy Java Web Development
When I ran your Hello World program in conjunction with Undertow, I got an error message: The web page at http://0.0.0.0:8080/ might be temporarily down or it may have moved...
Servers historically default on using ISO-8859-1 for the response and request when no charset is specified. It's time to use UTF-8 as the default.
For simple self-contained scenarios, we'd like the ability to load static assets (images, css, js, etc.) from the classpath - in situations where they're bundled in the jar.
A middleware that makes a CSRF token available in the session. This token can then be added to requests which mutate state, as a parameter of header. The token is...
The server is currently capable of reporting failures to an error monitor. We could extend monitoring to reporting requests processed, I/O errors, pipeline processing errors and maybe more.
A middleware for automatically adding a format extension at the end of the request path based on the Accept http header. For instance: ``` GET /some/resource Accept: application/json ``` would...
Documentation in a format that is easy to update and better looking that the actual README. Options to consider include GitBook and Jekyll.
A more capable i18n middleware than our current locale negotiation middleware. On an incoming request, it first tries to detect the locale value from the URI, then from a locale...
A middleware to hand off processing to a different application when the host of the request matches a given hostname. So we can write, e.g.: ``` java Application serveAssets =...
Make ETag middleware configurable with a list of body types considered not cacheable. When we encounter one of those bodies, we won't generate an ETag, Something like: ``` java new...