Loading .vscode/launch.json +1 −1 Changes for .vscode/launch.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "type": "cppvsdbg", "request": "launch", "program": "${workspaceFolder}/build/examples/Debug/httpsysinfo.exe", "args": ["-a","0.0.0.0.","-p","8080"], "args": ["-a","0.0.0.0","-p","8080"], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], Loading CMakeSettings.json +8 −1 Changes for CMakeSettings.json: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,14 @@ "cmakeCommandArgs": "", "buildCommandArgs": "", "ctestCommandArgs": "", "inheritEnvironments": [ "msvc_x64_x64" ] "inheritEnvironments": [ "msvc_x64_x64" ], "variables": [ { "name": "libnetplus_DIR", "value": "C:/Users/jan.koester/source/repos/libnetplus/out/install", "type": "PATH" } ] }, { "name": "x64-Release", Loading examples/httpform.cpp +2 −2 Changes for examples/httpform.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -59,8 +59,8 @@ public: curres.setVersion(HTTPVERSION(2.0)); curres.setContentLength(0); std::vector<char> errdat; std::copy(e.what(), e.what() + strlen(e.what()), std::back_inserter(errdat)); curres.send(curreq,errdat,strlen(e.what())); std::copy(e.what().begin(), e.what().end(), std::back_inserter(errdat)); curres.send(curreq,errdat,errdat.size()); } } } Loading src/exception.cpp +4 −4 Changes for src/exception.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -49,11 +49,11 @@ int libhttppp::HTTPException::getErrorType(){ return _curCType; } const char* libhttppp::HTTPException::what(){ return _Msg.c_str(); const std::string &libhttppp::HTTPException::what(){ return _Msg; } libhttppp::HTTPException& libhttppp::HTTPException::append(const char *src){ libhttppp::HTTPException& libhttppp::HTTPException::append(const std::string &src){ const std::lock_guard<std::mutex> lock(g_exception); _Msg+=src; return *this; Loading @@ -64,7 +64,7 @@ libhttppp::HTTPException& libhttppp::HTTPException::operator[](int errtype){ return *this; } libhttppp::HTTPException& libhttppp::HTTPException::operator<<(const char *src){ libhttppp::HTTPException& libhttppp::HTTPException::operator<<(const std::string& src){ return append(src); }; Loading src/exception.h +3 −3 Changes for src/exception.h: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -45,10 +45,10 @@ namespace libhttppp { HTTPException(const HTTPException &exp); virtual ~HTTPException(); int getErrorType(); const char* what(); HTTPException& append(const char *src); const std::string &what(); HTTPException& append(const std::string &src); HTTPException& operator[](int errtype); HTTPException& operator<<(const char *src); HTTPException& operator<<(const std::string& src); HTTPException& operator<<(int src); enum Type {Note,Warning,Error,Critical}; private: Loading Loading
.vscode/launch.json +1 −1 Changes for .vscode/launch.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "type": "cppvsdbg", "request": "launch", "program": "${workspaceFolder}/build/examples/Debug/httpsysinfo.exe", "args": ["-a","0.0.0.0.","-p","8080"], "args": ["-a","0.0.0.0","-p","8080"], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], Loading
CMakeSettings.json +8 −1 Changes for CMakeSettings.json: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,14 @@ "cmakeCommandArgs": "", "buildCommandArgs": "", "ctestCommandArgs": "", "inheritEnvironments": [ "msvc_x64_x64" ] "inheritEnvironments": [ "msvc_x64_x64" ], "variables": [ { "name": "libnetplus_DIR", "value": "C:/Users/jan.koester/source/repos/libnetplus/out/install", "type": "PATH" } ] }, { "name": "x64-Release", Loading
examples/httpform.cpp +2 −2 Changes for examples/httpform.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -59,8 +59,8 @@ public: curres.setVersion(HTTPVERSION(2.0)); curres.setContentLength(0); std::vector<char> errdat; std::copy(e.what(), e.what() + strlen(e.what()), std::back_inserter(errdat)); curres.send(curreq,errdat,strlen(e.what())); std::copy(e.what().begin(), e.what().end(), std::back_inserter(errdat)); curres.send(curreq,errdat,errdat.size()); } } } Loading
src/exception.cpp +4 −4 Changes for src/exception.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -49,11 +49,11 @@ int libhttppp::HTTPException::getErrorType(){ return _curCType; } const char* libhttppp::HTTPException::what(){ return _Msg.c_str(); const std::string &libhttppp::HTTPException::what(){ return _Msg; } libhttppp::HTTPException& libhttppp::HTTPException::append(const char *src){ libhttppp::HTTPException& libhttppp::HTTPException::append(const std::string &src){ const std::lock_guard<std::mutex> lock(g_exception); _Msg+=src; return *this; Loading @@ -64,7 +64,7 @@ libhttppp::HTTPException& libhttppp::HTTPException::operator[](int errtype){ return *this; } libhttppp::HTTPException& libhttppp::HTTPException::operator<<(const char *src){ libhttppp::HTTPException& libhttppp::HTTPException::operator<<(const std::string& src){ return append(src); }; Loading
src/exception.h +3 −3 Changes for src/exception.h: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -45,10 +45,10 @@ namespace libhttppp { HTTPException(const HTTPException &exp); virtual ~HTTPException(); int getErrorType(); const char* what(); HTTPException& append(const char *src); const std::string &what(); HTTPException& append(const std::string &src); HTTPException& operator[](int errtype); HTTPException& operator<<(const char *src); HTTPException& operator<<(const std::string& src); HTTPException& operator<<(int src); enum Type {Note,Warning,Error,Critical}; private: Loading