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:
parent
5544612a19
commit
3be67623fa
5 changed files with 285 additions and 146 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue