server 0.0.1
basicserverinfrastructure

include/http/header.h File Reference

#include "class.h"
Include dependency graph for header.h:

Go to the source code of this file.

Classes

struct  HttpHeader

Functions

HttpHeader httpHeaderParse (char *line)
void httpHeaderSort (const HttpHeader[], int)
char * httpHeaderGet (const HttpHeader[], int, const char *)

Function Documentation

char* httpHeaderGet ( const HttpHeader  [],
int  ,
const char *   
)

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:

HttpHeader httpHeaderParse ( char *  line)
void httpHeaderSort ( const HttpHeader  [],
int   
)

Definition at line 14 of file sort.c.

{
        qsort(header, nheader, sizeof(HttpHeader), comp);
}

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines