: sock(sock),
state(Client::READING_REQUEST),
stream(NULL),
- header_or_error_bytes_sent(0),
+ header_or_short_response_bytes_sent(0),
stream_pos(0),
bytes_sent(0),
bytes_lost(0),
request(serialized.request()),
url(serialized.url()),
stream(stream),
- header_or_error(serialized.header_or_error()),
- header_or_error_bytes_sent(serialized.header_or_error_bytes_sent()),
+ header_or_short_response(serialized.header_or_short_response()),
+ header_or_short_response_bytes_sent(serialized.header_or_short_response_bytes_sent()),
stream_pos(serialized.stream_pos()),
bytes_sent(serialized.bytes_sent()),
bytes_lost(serialized.bytes_lost()),
serialized.set_state(state);
serialized.set_request(request);
serialized.set_url(url);
- serialized.set_header_or_error(header_or_error);
- serialized.set_header_or_error_bytes_sent(serialized.header_or_error_bytes_sent());
+ serialized.set_header_or_short_response(header_or_short_response);
+ serialized.set_header_or_short_response_bytes_sent(serialized.header_or_short_response_bytes_sent());
serialized.set_stream_pos(stream_pos);
serialized.set_bytes_sent(bytes_sent);
serialized.set_bytes_lost(bytes_lost);