| 29 | } |
| 30 | |
| 31 | void onHello(HttpRequest& request, HttpResponse& response) |
| 32 | { |
| 33 | response.setContentType(MIME_HTML); |
| 34 | |
| 35 | // Below is an example how to send multiple cookies |
| 36 | response.setCookie("cookie1", "value1"); |
| 37 | response.setCookie("cookie2", "value", true); |
| 38 | |
| 39 | // Use direct strings output only for small amount of data (huge memory allocation) |
| 40 | response.sendString("Sming. Let's do smart things."); |
| 41 | } |
| 42 | |
| 43 | void onFile(HttpRequest& request, HttpResponse& response) |
| 44 | { |
nothing calls this directly
no test coverage detected