Struct Response¶
- Defined in File KPServerResponse.hpp
Struct Documentation¶
-
struct
Response¶ Public Functions
-
Response(WiFiClient &client, const size_t tcp_limit)¶
-
void
setHeader(const char *key, const char *value)¶
-
template<size_t
N>
size_tsend(const char (&data)[N])¶
-
size_t
json(const JsonDocument &doc)¶
-
size_t
sendFile(const char *filepath, KPDataStoreInterface &store)¶
-
void
end()¶
-
void
onNotFound(std::function<void()> callback)¶
-
void
notFound()¶
-