MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / GetHeader

Method GetHeader

src/test/testhttpserver.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32void TestHttpServer::SetResponse(const std::string &response) { this->response = response; }
33
34std::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
40TestHttpServer::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) {

Callers 1

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected