Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kHttpServerResponse_SetClosed | ( | kHttpServerResponse | response,
|  | kBool | closed
| ) |  |

Instructs the HTTP server to close this connection when message processing is complete.

This function can only be called prior to writing the message body.

Use of this function will automatically add the 'connection: closed' header.

Parameters

  response | Response object.
  closed | kTRUE to close the connection; kFALSE otherwise.

Returns
  Operation status.