Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kHttpServerResponse_SetHeader | ( | kHttpServerResponse | response,
|  | const kChar * | name,
|  | const kChar * | value
| ) |  |

Sets the value of a header in the response.

Headers that can be determined from the information provided in other functions (e.g. 'Content-Length', 'Transfer-Encoding', 'Connection') will be generated automatically and should not normally be provided via this function.

Leading headers should be added prior to writing the message body. Trailing headers can be generated by calling this function after writing at least one chunk-encoded body segment.

Parameters

  response | Response object.
  name | Header field name.
  value | Header field value.

Returns
  Operation status.