httpd.c File Reference

Go to the source code of this file.

Functions

void NutHttpSendHeaderTop (FILE *stream, REQUEST *req, int status, char *title)
 Send top lines of a standard HTML header.
void NutHttpSendHeaderBot (FILE *stream, char *mime_type, long bytes)
 Send bottom lines of a standard HTML header.
void NutHttpSendError (FILE *stream, REQUEST *req, int status)
 Send a HTTP error response.
char * NutGetMimeType (char *name)
 Return the mime type description of a specified file name.
void * NutGetMimeHandler (char *name)
 Return the mime type handler of a specified file name.
u_char NutSetMimeHandler (char *extension, void(*handler)(FILE *stream, int fd, int file_len, char *http_root, REQUEST *req))
 Set the mime type handler for a specified file extension.
char * NutHttpURLEncode (char *str)
void NutHttpURLDecode (char *str)
 URLDecodes a string.
void NutHttpProcessQueryString (REQUEST *req)
 Parses the QueryString.
void NutHttpProcessPostQuery (FILE *stream, REQUEST *req)
 Parses the QueryString.
char * NutHttpGetParameter (REQUEST *req, char *name)
 Gets a request parameter value by name.
int NutHttpGetParameterCount (REQUEST *req)
 Gets the number of request parameters.
char * NutHttpGetParameterName (REQUEST *req, int index)
 Gets the name of a request parameter.
char * NutHttpGetParameterValue (REQUEST *req, int index)
 Get the value of a request paramter.
int NutRegisterHttpRoot (char *path)
 Register the HTTP server's root directory.
void NutHttpProcessRequest (FILE *stream)
 Process the next HTTP request.


Variable Documentation

char* ext

Definition at line 122 of file httpd.c.

Referenced by NutGetMimeHandler(), NutGetMimeType(), and NutSetMimeHandler().

char* type

Definition at line 123 of file httpd.c.

Referenced by NutGetMimeType().

void(* handler)(FILE *stream, int fd, int file_len, char *http_root, REQUEST *req)

Referenced by NplRegisterIrqHandler(), NutGetMimeHandler(), NutRegisterIrqHandler(), NutRegisterSysIrqHandler(), NutRegisterTimer(), and NutSetMimeHandler().


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