What methods and classes are used for this?

    1 answer 1

    It seems to be nothing complicated:

    @Override public Response serve(IHTTPSession session) { session.getCookies().set(new Cookie("uid", "123")); return newFixedLengthResponse("<html><body><h1>Hello server</h1></body></html>\n"); }