| 32 | void TestHttpServer::SetResponse(const std::string &response) { this->response = response; } |
| 33 | |
| 34 | std::string TestHttpServer::GetHeader(const std::string &key) { |
| 35 | if (this->headers.find(key) != this->headers.end()) |
| 36 | return this->headers[key]; |
| 37 | return ""; |
| 38 | } |
| 39 | |
| 40 | TestHttpServer::MicroHttpdResult TestHttpServer::callback(void *cls, MHD_Connection *connection, const char *url, const char *method, const char *version, |
| 41 | const char *upload_data, size_t *upload_data_size, void **con_cls) { |
no test coverage detected