using namespace anna;
void http::Response::setStatusCode(const int statusCode)
-throw() {
+{
static struct { int statusCode; const char* reasonPhrase; } reasons [] = {
100, "Continue",
101, "Switching Protocols",
}
string http::Response::codeStartLine() const
-throw(RuntimeException) {
+noexcept(false) {
string result(getVersion());
result += ' ';
result += functions::asString(a_statusCode);
}
string http::Response::asString() const
-throw() {
+{
string result("http::Response { Version: ");
result += getVersion();
result += " | StatusCode: ";