read(buffer, maxLen); }); response->addHeader("Server","AsyncWebServer_ESP32_W5500"); request->send(response);Respond with content using a callback containing templatesString processor(const String& var) { if (var == "HELLO_FROM_TEMPLATE") return F("Hello world!"); return String();...
AsyncWebServerResponse *response = request->beginResponse(404); //Sends 404 File Not Found response->addHeader("Server","AsyncWebServer_ESP32_W5500"); request->send(response);Basic response with string contentrequest->send(200, "text/plain", "Hello World!");...