Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 613 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 613 Bytes

Jin Web Framework

Jin is a web framework written in Java. It features a coffee-like API with performance that is up to 1x faster. If you need fun and enjoy, you will love Jin.

How to Use

build.gradle

implementation 'com.kimhyun5u.jin:jin:1.0.0'

main.java

import http.Server;

public class Main {
    public static void main(String[] args) {

        Server server = Server.defaultServer(8080, 10);

        server.get("/", (ctx) -> {
                    ctx.response().setBody("Hello, World!".getBytes());
                }
        );

        server.start();
    }
}