projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
source
/
http
/
Response.cpp
diff --git
a/source/http/Response.cpp
b/source/http/Response.cpp
index
1029dc5
..
fecdf61
100644
(file)
--- 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)
using namespace anna;
void http::Response::setStatusCode(const int statusCode)
-
throw()
{
+{
static struct { int statusCode; const char* reasonPhrase; } reasons [] = {
100, "Continue",
101, "Switching Protocols",
static struct { int statusCode; const char* reasonPhrase; } reasons [] = {
100, "Continue",
101, "Switching Protocols",
@@
-78,7
+78,7
@@
throw() {
}
string http::Response::codeStartLine() const
}
string http::Response::codeStartLine() const
-
throw(RuntimeException
) {
+
noexcept(false
) {
string result(getVersion());
result += ' ';
result += functions::asString(a_statusCode);
string result(getVersion());
result += ' ';
result += functions::asString(a_statusCode);
@@
-87,7
+87,7
@@
throw(RuntimeException) {
}
string http::Response::asString() const
}
string http::Response::asString() const
-
throw()
{
+{
string result("http::Response { Version: ");
result += getVersion();
result += " | StatusCode: ";
string result("http::Response { Version: ");
result += getVersion();
result += " | StatusCode: ";