[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_ConnHeaders

Overview

Return headers

Syntax

    Ns_Set *Ns_ConnHeaders(
    	Ns_Conn *conn
    );

Description

The Ns_ConnHeaders function returns, as an Ns_Set, the headers associated with the connection.

Example

    	/* Log the Referer header. */
    	Ns_Set *headers;
    	char *refer;
    
    	headers = Ns_ConnHeaders(conn);
    	if (headers != NULL) {
    		refer = Ns_SetGetValue(headers, "Referer");
    		if (refer != NULL) {
    			Ns_Log(Notice, "Referer: %s", refer);
    		}
    	}
    

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.