Improved beast::http::message:

* Add headers::erase
* Set http::message version with std::pair
* Use std::pair for headers::value_type
This commit is contained in:
Vinnie Falco
2014-10-30 17:16:54 -07:00
parent eb64a4387d
commit ea7013a34d
3 changed files with 96 additions and 42 deletions

View File

@@ -58,9 +58,19 @@ public:
log << "|" << result.first.headers["Field"] << "|";
}
void
test_headers()
{
headers h;
h.append("Field", "Value");
expect (h.erase("Field") == 1);
}
void
run()
{
test_headers();
{
std::string const text =
"GET / HTTP/1.1\r\n"