IHttpResponse2::WriteEntityChunks Method
Appends one or more HTTP_DATA_CHUNK structures to the response body for an asynchronous operation.
Syntax
virtual HRESULT WriteEntityChunks(
_In_reads_(nChunks)
HTTP_DATA_CHUNK * pDataChunks,
_In_ DWORD nChunks,
_In_ BOOL fAsync,
_In_ BOOL fMoreData,
_In_ PFN_ASYNC_COMPLETION pfnCompletionCallback,
_In_ VOID * pvCompletionContext,
_Out_ DWORD * pcbSent,
_Out_ BOOL * pfCompletionExpected = NULL
) = 0;
Parameters
pDataChunks
[IN] A pointer to one or more HTTP_DATA_CHUNK
structures.
nChunks
[IN] Number of chunks pointed to by pDataChunks
.
fAsync
[IN] true
if the method should complete asynchronously; otherwise, false
.
fMoreData
[IN] true
if more data is to be sent in the response; false
if this is the last data.
pfnCompletionCallback
[IN] Pointer to a callback function for completing the operation.
pvCompletionContext
[IN] Points to the completion context information for the operation.
pcbSent
[OUT] Number of bytes sent to the client.
pfCompletionExpected
[OUT] true
if an asynchronous completion is pending for this call; otherwise, false
.
Return Value
An HRESULT
. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK | Indicates that the operation was successful. |
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - IIS Express 7.5, IIS Express 8.0, IIS Express 10.0 |
Header | Httpserv.h |
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for