HTTP protocol definitions for daemons.
|
Defines |
|
#define | METHOD_GET |
|
#define | METHOD_POST |
|
#define | METHOD_HEAD |
Typedefs |
|
typedef _REQUEST | REQUEST |
|
typedef _AUTHINFO | AUTHINFO |
|
typedef _CGIFUNCTION | CGIFUNCTION |
Functions |
| void | NutHttpProcessRequest (FILE *stream) |
| | Process the next HTTP request.
|
| 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.
|
| 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)(FILE *, REQUEST *)) |
| | Register a CGI function.
|
| void | NutCgiProcessRequest (FILE *stream, REQUEST *req) |
| | Process an incoming CGI request.
|
|
char * | NutHttpURLEncode (char *str) |
| void | NutHttpURLDecode (char *str) |
| | URLDecodes a string.
|
| 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.
|