Update README.md

This commit is contained in:
강남스타일 2023-04-14 13:09:48 +03:00 committed by GitHub
parent 4bee06915c
commit f9cceb68a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ new Lumiere((HttpRequest request, HttpResponse response) -> {
You can create multiple pages for your simple server using ``HttpController`` You can create multiple pages for your simple server using ``HttpController``
#### Create responses using ``HttpController`` class #### Example using ``HttpController`` class
```java ```java
HttpController controller = new HttpController(); HttpController controller = new HttpController();
controller.addHandler("/", new SimpleResponse("<a href=\"/info\">GO TO INFO</a>", true)); controller.addHandler("/", new SimpleResponse("<a href=\"/info\">GO TO INFO</a>", true));