mirror of
https://github.com/devsnaith/lumiere-server.git
synced 2024-11-23 17:13:14 +03:00
Update README.md
This commit is contained in:
parent
eeccd7951b
commit
4ecad4e679
@ -38,9 +38,9 @@ int server_port = 8080;
|
|||||||
String body = "<b>Hello, World!</b>";
|
String body = "<b>Hello, World!</b>";
|
||||||
boolean contentTypeIsHTML = true; // false = text/plan
|
boolean contentTypeIsHTML = true; // false = text/plan
|
||||||
|
|
||||||
SimpleResponse requestHandler = new SimpleResponse(body, contentTypeIsHTML);
|
SimpleResponse response = new SimpleResponse(body, contentTypeIsHTML);
|
||||||
|
|
||||||
Lumiere server = new Lumiere(requestHandler);
|
Lumiere server = new Lumiere(response);
|
||||||
server.bootServer(server_port); // start the server
|
server.bootServer(server_port); // start the server
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user