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

Method generate_error

src/dpp/http_server_request.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void http_server_request::generate_error(uint16_t error_code, const std::string& message) {
99 status = HTTPS_DONE;
100 owner->queue_work(1, [this, error_code, message]() {
101 status = error_code;
102 response_body = message;
103 handler(this);
104 socket_write(get_response());
105 handler = {};
106 });
107}
108
109bool http_server_request::handle_buffer(std::string &buffer)
110{

Callers

nothing calls this directly

Calls 1

queue_workMethod · 0.80

Tested by

no test coverage detected