Tidy up HTTP reason_string (API Change):

fix #182

reason_string() is now located in <beast/http/message.hpp>
and returns a string view rather than char const*.
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:16 -07:00
parent d9562ff525
commit 4461f5153c
10 changed files with 80 additions and 94 deletions
+8
View File
@@ -296,6 +296,13 @@ public:
}();
}
void
testReasonString()
{
for(int i = 1; i <= 999; ++i)
BEAST_EXPECT(! reason_string(i).empty());
}
void
run() override
{
@@ -305,6 +312,7 @@ public:
testPrepare();
testSwap();
testSpecialMembers();
testReasonString();
}
};