Zen API
|
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.
response | Response object. |
name | Header field name. |
value | Header field value. |