MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / extractPath

Function extractPath

3ds/source/server.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 std::mutex handlersMutex;
76
77 std::string extractPath(const std::string& request)
78 {
79 size_t sp = request.find(" ");
80 if (sp != std::string::npos) {
81 size_t pathStart = sp + 1;
82 size_t pathEnd = request.find(" ", pathStart);
83 if (pathEnd != std::string::npos) {
84 return request.substr(pathStart, pathEnd - pathStart);
85 }
86 }
87 return "";
88 }
89
90 static size_t parseContentLength(const std::string& headers)
91 {

Callers 1

handleHttpRequestFunction · 0.70

Calls 1

findMethod · 0.80

Tested by

no test coverage detected