MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / GetFile

Function GetFile

test/http/HttpServerTest.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::string GetFile() {
58 std::ifstream t("logo.png");
59 std::string str((std::istreambuf_iterator<char>(t)),
60 std::istreambuf_iterator<char>());
61 return std::move(str);
62}
63
64void DisConnectionFunc(const cppnet::Handle& , uint32_t ) {
65 std::cout << "[DisConnectionFunc]" << std::endl;

Callers 1

OnRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected