Reset error codes

fix #478
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:20 -07:00
parent 7d92048c5c
commit ca109693fb
32 changed files with 276 additions and 67 deletions
+14 -6
View File
@@ -166,50 +166,58 @@ public:
void
on_request(verb, string_view,
string_view, int, error_code&)
string_view, int, error_code& ec)
{
ec = {};
}
void
on_response(int,
string_view,
int, error_code&)
int, error_code& ec)
{
ec = {};
}
void
on_field(field,
string_view, string_view, error_code&)
string_view, string_view, error_code& ec)
{
ec = {};
}
void
on_header(error_code& ec)
{
ec = {};
}
void
on_body(boost::optional<std::uint64_t> const&,
error_code&)
error_code& ec)
{
ec = {};
}
void
on_data(string_view,
error_code& ec)
{
ec = {};
}
void
on_chunk(std::uint64_t,
string_view,
error_code&)
error_code& ec)
{
ec = {};
}
void
on_complete(error_code&)
on_complete(error_code& ec)
{
ec = {};
}
};