Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christoph-jerolimov/kajitsu
Java 8 middleware web application framework.
https://github.com/christoph-jerolimov/kajitsu
Last synced: about 2 months ago
JSON representation
Java 8 middleware web application framework.
- Host: GitHub
- URL: https://github.com/christoph-jerolimov/kajitsu
- Owner: christoph-jerolimov
- Created: 2014-04-13T01:51:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-13T02:13:06.000Z (over 10 years ago)
- Last Synced: 2024-11-25T12:16:25.886Z (about 2 months ago)
- Language: Java
- Homepage:
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kajitsu
## Java 8 middleware web application framework.
**Status:** Prototype.
Inspired by the great javascript frameworks
[connect](http://www.senchalabs.org/connect/),
[express](http://expressjs.com/) and
[koa](http://koajs.com/).```java
public class Example1 {
public static void main(String... args) {App app = new App();
app.use(new RequestLogger());
app.use(new ExpiresIn(10, ChronoUnit.MINUTES));
app.use(new CalculateContentLength());
app.use(new Compress());app.use((request, response, next) -> {
response.setHeader("Server", "Example1");
response.setHeader("Content-Type", "text/plain");try {
response.getOutputStream().write("Hallo\n".getBytes());
} catch (IOException e) {
e.printStackTrace();
}next.run();
});app.listen(5000);
}
}
```100% dependency free. Java 8 SE should be enought, or?
No Servlet-API? YEP!