Refactor treatment of request-method (API Change):

fix #397

method enum class is added to represent all known request methods.
Functions are provided to convert from strings to and from the method
enumeration.

The fields container is modified to also work with the enum.
This commit is contained in:
Vinnie Falco
2017-05-30 15:59:50 -07:00
parent 3ae76d0d00
commit 9a585a82d9
21 changed files with 737 additions and 79 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ public:
{
{
request<string_body> m;
m.method("GET");
m.method(verb::get);
m.target("/");
m.version = 11;
m.fields.insert("Upgrade", "test");