Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions | Variables
httpReadHdrs.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <http.h>
#include <string.h>

Functions

int httpReadHdrs (struct http *webptr)
 

Variables

char * allowed_hdr [] = { "Content-Length: ", "Content-Type: " }
 

Function Documentation

int httpReadHdrs ( struct http *  webptr)

Decipher the headers of an HTTP request, extracting values as needed.

Parameters
webptrpointer to the HTTP device
Returns
OK if headers were processed, otherwise SYSERR