Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

pro/httpd.h File Reference

HTTP protocol definitions for daemons. More...


Data Structures

struct  _AUTHINFO
 HTTP authorization information structure. More...

struct  _CGIFUNCTION
 Registered CGI function. More...

struct  _REQUEST
 HTTP request information structure. More...


Defines

#define METHOD_GET   1
#define METHOD_POST   2
#define METHOD_HEAD   3

Typedefs

typedef _REQUEST REQUEST
typedef _AUTHINFO AUTHINFO
typedef _CGIFUNCTION CGIFUNCTION

Functions

void NutHttpProcessRequest (NUTDEVICE *sostream)
 Process the next HTTP request.

void NutHttpSendHeaderTop (NUTDEVICE *sostream, REQUEST *req, int status, char *title)
 Send top lines of a standard HTML header.

void NutHttpSendHeaderBot (NUTDEVICE *sostream, char *mime_type, int bytes)
 Send bottom lines of a standard HTML header.

void NutHttpSendError (NUTDEVICE *sostream, REQUEST *req, int status)
 Send a HTTP error response.

char * NutGetMimeType (char *name)
 Return the mime type description of a specified file name.

int NutHttpAuthValidate (REQUEST *req)
 Validate an authorization request.

int NutRegisterAuth (CONST char *dirname, CONST char *login)
 Register an authorization entry.

int NutRegisterCgi (char *name, int(*func)(NUTDEVICE *, REQUEST *))
 Register a CGI function.

void NutCgiProcessRequest (NUTDEVICE *sostream, REQUEST *req)
 Process an incoming CGI request.


Detailed Description

HTTP protocol definitions for daemons.


© 2000-2002 by egnite Software GmbH - visit http://www.ethernut.de/