forked from boostorg/beast
Add on_body_what parser callback (API Change):
These changes support parsing the headers separately from the body. * on_headers now returns void * on_body_what is a new required callback which returns body_what
This commit is contained in:
1 parent
ac07d0c3ed
commit
83556937f6
7 files changed
+73
-20
No files matched your search
@@ -85,8 +85,15 @@ public:
|
||||
fc_.fail(ec);
|
||||
}
|
||||
|
||||
body_what
|
||||
void
|
||||
on_headers(std::uint64_t content_length, error_code& ec)
|
||||
{
|
||||
if(fc_.fail(ec))
|
||||
return;
|
||||
}
|
||||
|
||||
body_what
|
||||
on_body_what(std::uint64_t content_length, error_code& ec)
|
||||
{
|
||||
if(fc_.fail(ec))
|
||||
return body_what::normal;
|
||||
|
||||
Reference in new issue
Block a user