Example #1
0
void HttpBuffer::beginBody(const MessageHeader& reply)
{
    log_trace("HttpBuffer::beginBody()");
    _chunkParser.reset();

    setg(0,0,0);

    _keepAlive = reply.isKeepAlive();
    _contentLength = reply.contentLength();
    _chunked = reply.isChunked();

    log_debug("keep-alive: " << _keepAlive);
    log_debug("chunked: " << _chunked);
    log_debug("content-length: " << _contentLength);
}