server 0.0.1
basicserverinfrastructure

src/http/header/get.c File Reference

#include <stdlib.h>
#include <ctype.h>
#include "http/header.h"
Include dependency graph for get.c:

Go to the source code of this file.

Functions

char * httpHeaderGet (const HttpHeader header[], int nheader, const char *name)

Function Documentation

char* httpHeaderGet ( const HttpHeader  header[],
int  nheader,
const char *  name 
)

Definition at line 31 of file get.c.

{
        unsigned long hash = sdbm((unsigned char *)name);
        HttpHeader    found;

        found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);

        return (NULL != found)? found->value : NULL;
}

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines