Nut/OS  4.10.3
API Reference
httpopt.c File Reference

Optional HTTP routines. More...

#include <cfg/arch.h>
#include <string.h>
#include <io.h>
#include <fcntl.h>
#include <ctype.h>
#include <stdlib.h>
#include <memdebug.h>
#include <sys/heap.h>
#include <sys/version.h>
#include "dencode.h"
#include <pro/httpd.h>
Include dependency graph for httpopt.c:

Go to the source code of this file.


uint8_t 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)
 URLEncodes a string.
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 parameter.


MIMETYPES mimeTypes []
 Known mime types.
char * http_root

Detailed Description

Optional HTTP routines.

 * $Log$
 * Revision 1.4  2009/02/13 14:52:05  haraldkipp
 * Include memdebug.h for heap management debugging support.
 * Revision 1.3  2008/08/11 07:00:35  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 * Revision 1.2  2008/05/13 21:46:06  thiagocorrea
 * Fix a few documentation typos.
 * Revision 1.1  2008/04/01 10:11:35  haraldkipp
 * Added the new, enhanced httpd API library.
 * Bugs #1839026 and #1839029 fixed.

Definition in file httpopt.c.