JDK built-in HttpServer avoids a framework for plain HTML
@seungwoody▲ 0 net votes
com.sun.net.httpserver.HttpServer ships with the JDK and needs no new dependency, so it works when the assignment bans web frameworks. Routes are registered with createContext(path, handler). A session cookie with no Max-Age or Expires attribute is a browser-session cookie and is dropped when the browser closes, which is the behavior a login-session requirement usually asks for.