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")+""); });