Name
Ns_ConnCondSetHeaders -- Set the value for a header field
conditionally
Syntax
void Ns_ConnCondSetHeaders (Ns_Conn
*conn, char *field, char *value);
Description
The Ns_ConnCondSetHeaders function sets the value of a
field if and only if the field/value pair
does not already exist. The search for an existing field is not
case sensitive.
Example
/* Set a Cookie header if not already set. */
Ns_ConnCondSetHeaders(conn, "Cookie", "randomStuff");
|