Fields concept work

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:18 -07:00
1 parent f363654300
commit 943830f6ed
20 files changed
+675 -343

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ public:
flat_buffer buffer;
request<string_body> req;
req.version = 11;
req.method("POST");
req.method_string("POST");
req.target("/");
req.insert(field::user_agent, "test");
req.body = "Hello, world!";
@@ -101,7 +101,7 @@ public:
{
request<string_body> req;
req.version = 11;
req.method("POST");
req.method_string("POST");
req.target("/");
req.insert(field::user_agent, "test");
req.body = "Hello, world!";
+2 -2
View File
@@ -134,7 +134,7 @@ public:
m1.target("u");
m1.body = "1";
m1.insert("h", "v");
m2.method("G");
m2.method_string("G");
m2.body = "2";
swap(m1, m2);
BEAST_EXPECT(m1.method_string() == "G");
@@ -268,7 +268,7 @@ public:
auto const scheck =
[&](string_view s)
{
h.method(s);
h.method_string(s);
BEAST_EXPECT(h.method() == string_to_verb(s));
BEAST_EXPECT(h.method_string() == s);
};