While Spring brings a cool breeze, Summer-Web brings a heatwave to your server! Enjoy slow speeds and high CPU usage that turn your server room into a sauna.
dependencies {
implementation 'io.github.hellomatia:summer-web:1.0.0'
}
<dependency>
<groupId>io.github.hellomatia</groupId>
<artifactId>summer-web</artifactId>
<version>1.0.0</version>
</dependency>
- Server Setup:
import server.core.Server;
public class Main {
public static void main(String[] args) throws IOException {
Server server = new Server(8080, 10, "your.basePackage.");
server.start();
}
}
- Create a Request Handler:
import server.handler.CustomRequestHandler;
import server.handler.annotation.Handler;
import server.handler.annotation.HttpMethod;
import server.http.HttpRequest;
import server.http.HttpResponse;
@Handler("/")
public class SummerHandler extends CustomRequestHandler {
@HttpMethod("GET")
public HttpResponse moveMainPage(HttpRequest request) {
return ok("Hello Summer!".getBytes())
.build();
}
}
- Guaranteed higher CPU temperatures than Spring-web!
- Astounding low performance to justify your infrastructure investments!
- Code execution so slow, you'll have time for a coffee break!
graph TD
A[Start] --> B{Framework Choice}
B -->|Spring-web| C[Normal Temperature]
B -->|Summer-Web| D[CPU Melting]
C --> E[38°C]
D --> F[99°C]
style C fill:#90EE90,stroke:#006400,stroke-width:2px
style D fill:#FF6347,stroke:#8B0000,stroke-width:2px