X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fhttp%2FResponse.cpp;fp=source%2Fhttp%2FResponse.cpp;h=fecdf61b1ae682c668314fada69d8f3e2245a67e;hp=1029dc5810e0af59967de3cde279de5d2ddd45a5;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/http/Response.cpp b/source/http/Response.cpp index 1029dc5..fecdf61 100644 --- a/source/http/Response.cpp +++ b/source/http/Response.cpp @@ -14,7 +14,7 @@ using namespace std; using namespace anna; void http::Response::setStatusCode(const int statusCode) -throw() { +{ static struct { int statusCode; const char* reasonPhrase; } reasons [] = { 100, "Continue", 101, "Switching Protocols", @@ -78,7 +78,7 @@ throw() { } string http::Response::codeStartLine() const -throw(RuntimeException) { +noexcept(false) { string result(getVersion()); result += ' '; result += functions::asString(a_statusCode); @@ -87,7 +87,7 @@ throw(RuntimeException) { } string http::Response::asString() const -throw() { +{ string result("http::Response { Version: "); result += getVersion(); result += " | StatusCode: ";