[ 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.

Examples

    	/* 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);
    		}
    	}
    

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.