From 4f14721b47bd00efb7c2e141bd1d0ea428936611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=82=A8=EC=8A=A4=ED=83=80=EC=9D=BC?= <65865554+DevSnaith@users.noreply.github.com> Date: Wed, 19 Apr 2023 11:09:27 +0300 Subject: [PATCH] add missing stuff --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67ef7ef..000d5ba 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ If you want to make a dynamic response, use ``HttpRequestHandler`` #### Example using ``HttpRequestHandler`` interface ```java /* new HttpRequestHandler */ -new Lumiere((HttpRequest request, HttpResponse response) -> { +new Lumiere((Socket socket, HttpRequest request, HttpResponse response) -> {   response.setContentType("text/html");   response.push(""+request.getProperty("User-Agent")+""); }).bootServer(8080); @@ -61,7 +61,7 @@ You can create multiple pages for your simple server using ``HttpController`` HttpController controller = new HttpController(); controller.addHandler("/", new SimpleResponse("GO TO INFO", true)); controller.addHandler("/info", new SimpleResponse("Meow", false)); -controller.addHandler("/agent", (HttpRequest request, HttpResponse response) -> { +controller.addHandler("/agent", (Socket socket, HttpRequest request, HttpResponse response) -> {   response.setContentType("text/html");   response.push(""+request.getProperty("User-Agent")+""); });