This commit is contained in:
Michael Bykovski 2017-09-23 18:13:21 +02:00
commit f77fd4d4b0

View File

@ -75,13 +75,13 @@ The params have to look like this (there are not default values for the params!)
## Example ## Example
``` ```javascript
webserver.onRequest( webserver.onRequest(
function(request) { function(request) {
console.log("O MA GAWD! This is the request: ", request); console.log("O MA GAWD! This is the request: ", request);
webserver.sendResponse( webserver.sendResponse(
request.responseId, request.requestId,
{ {
status: 200, status: 200,
body: '<html>Hello World</html>', body: '<html>Hello World</html>',