forked from boostorg/beast
Add verb to on_request for parsers (API Change)
This commit is contained in:
1 parent
1c063f5bf6
commit
ff216a89a8
8 files changed
+30
-167
No files matched your search
@@ -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&)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in new issue
Block a user