Add verb to on_request for parsers (API Change)

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:18 -07:00
1 parent 1c063f5bf6
commit ff216a89a8
8 files changed
+30 -167

No files matched your search

+2 -3
View File
@@ -165,9 +165,8 @@ public:
boost::asio::mutable_buffers_1;
void
on_request(string_view,
string_view,
int, error_code&)
on_request(verb, string_view,
string_view, int, error_code&)
{
}
+3 -4
View File
@@ -47,12 +47,11 @@ public:
}
void
on_request(string_view method_,
string_view path_,
int version_, error_code& ec)
on_request(verb, string_view method_str_,
string_view path_, int version_, error_code& ec)
{
method = std::string(
method_.data(), method_.size());
method_str_.data(), method_str_.size());
path = std::string(
path_.data(), path_.size());
version = version_;