void Ns_ConnCondSetHeaders( Ns_Conn *conn, char *field, char *value );
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.
/* Set a Cookie header if not already set. */ Ns_ConnCondSetHeaders(conn, "Cookie", "randomStuff");