Ns_Set *Ns_ConnHeaders( Ns_Conn *conn );
The Ns_ConnHeaders function returns, as an Ns_Set, the headers associated with the connection.
/* Log the Referer header. */ Ns_Set *headers; char *refer; headers = Ns_ConnHeaders(conn); if (headers != NULL) { refer = Ns_SetGet(headers, "Referer"); if (refer != NULL) { Ns_Log(Notice, "Referer: %s", refer); } }