Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kHttpServerResponse_BeginWriteContent | ( | kHttpServerResponse | response,
|  | k64u | length,
|  | kStream * | stream
| ) |  |

Begins writing a simple message body.

Use the stream provided by this function to write the message body.

Use of this function will automatically add the 'Content-Length' header.

Parameters

  response | Response object.
  length | Total length of the message body, in bytes.
  stream | Receives a reference to a stream object that should be used to write the message body.

Returns
  Operation status.