MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / respond

Function respond

src/httpservertest/httpservertest.cpp:30–32  ·  view source on GitHub ↗

* @brief Generate a simple html response * @param request request to respond to */

Source from the content-addressed store, hash-verified

28 * @param request request to respond to
29 */
30void respond(dpp::http_server_request& request) {
31 request.set_status(200).set_response_header("Content-Type", "text/html").set_response_body("<h1>It lives!</h1>");
32}
33
34int main() {
35 using namespace std::chrono_literals;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected