Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kHttpServerResponse_BeginWriteChunk ( kHttpServerResponse  response,
k64u  length,
kStream stream 
)

Begins writing a chunk-encoded message body segment.

Use the stream provided by this function to write the message chunk. Call this function with a length of zero to signify that writing is complete.

Use of this function will automatically add the 'Transfer-Encoding: chunked' header.

Parameters
responseResponse object.
lengthLength of the message chunk, in bytes.
streamReceives a reference to a stream object that should be used to write the message chunk.
Returns
Operation status.