Client: async request handlers are now called multiple times if response content is larger than Config::max_response_streambuf_size. Also improved streambuf to streambuf copy, and streambuf to string copy. Finally, string() functions no longer consume streambuf.

This commit is contained in:
eidheim 2020-01-14 14:32:36 +01:00
commit 3be67623fa
5 changed files with 285 additions and 146 deletions

View file

@ -72,7 +72,7 @@ public:
}
void parse_response_header_test() {
std::shared_ptr<Response> response(new Response(static_cast<size_t>(-1)));
std::shared_ptr<Response> response(new Response(static_cast<size_t>(-1), nullptr));
ostream stream(&response->streambuf);
stream << "HTTP/1.1 200 OK\r\n";