Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cHttpClientBody Class Reference

#include <cHttpClient.h>

Public Member Functions

 cHttpClientBody (bool bTransferEncodingChunked)
 
HRESULT InitContentEncoding (cStringA sContentEncoding, STREAM_POS_t nTotal)
 

Public Attributes

cHeapBlock m_datablock
 
bool m_bTransferEncodingChunked
 Are we chunk encoding? HTTP_TAG_TransferEncoding. More...
 
bool m_bWaitForChunkHeader
 expecting a chunk header next? More...
 
cStreamProgress m_TransferChunk
 Progress of the current m_bTransferEncodingChunked. More...
 
cStreamQueue m_DecoderQueue
 Must create an intermediate queue for processing chunked data with m_pDecoder. More...
 
cNewPtr< cStreamInputm_pDecoder
 Content-Encoding: deflate or gzip. More...
 

Static Public Attributes

static const size_t k_MaxChunkSize = 1024 * 1024
 Don't allow m_bTransferEncodingChunked bigger than this. Might be an attack. k_FILE_BLOCK_SIZE. More...
 

Detailed Description

WaitForBody state. Similar to cStream::k_FILE_BLOCK_SIZE

Constructor & Destructor Documentation

◆ cHttpClientBody()

GrayLib::cHttpClientBody::cHttpClientBody ( bool  bTransferEncodingChunked)
inline

Member Function Documentation

◆ InitContentEncoding()

HRESULT GrayLib::cHttpClientBody::InitContentEncoding ( cStringA  sContentEncoding,
STREAM_POS_t  nTotal 
)

Member Data Documentation

◆ k_MaxChunkSize

const size_t GrayLib::cHttpClientBody::k_MaxChunkSize = 1024 * 1024
static

Don't allow m_bTransferEncodingChunked bigger than this. Might be an attack. k_FILE_BLOCK_SIZE.

◆ m_bTransferEncodingChunked

bool GrayLib::cHttpClientBody::m_bTransferEncodingChunked

Are we chunk encoding? HTTP_TAG_TransferEncoding.

◆ m_bWaitForChunkHeader

bool GrayLib::cHttpClientBody::m_bWaitForChunkHeader

expecting a chunk header next?

◆ m_datablock

cHeapBlock GrayLib::cHttpClientBody::m_datablock

◆ m_DecoderQueue

cStreamQueue GrayLib::cHttpClientBody::m_DecoderQueue

Must create an intermediate queue for processing chunked data with m_pDecoder.

◆ m_pDecoder

cNewPtr<cStreamInput> GrayLib::cHttpClientBody::m_pDecoder

Content-Encoding: deflate or gzip.

◆ m_TransferChunk

cStreamProgress GrayLib::cHttpClientBody::m_TransferChunk

Progress of the current m_bTransferEncodingChunked.


The documentation for this class was generated from the following files: