mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user