views:

7

answers:

0

We can receive a HTTP request body in two ways:

  1. call HttpReceiveHttpRequest with HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY set;
  2. call HttpReceiveHttpRequest with HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY cleared and then call HttpReceiveRequestEntityBody.

In the first case an array of HTTP_DATA_CHUNKs is filled, in the second - the raw bytes buffer is filled.

The questions is: can this array of HTTP_DATA_CHUNKs (case 1) contain a HTTP_DATA_CHUNK of type other than HttpDataChunkFromMemory? If yes - what does it mean, if no - why such a signature is used?