Data Structures | |
| struct | _AUTHINFO |
| HTTP authorization information structure. More... | |
| struct | _AUTHINFO |
| HTTP authorization information structure. More... | |
| struct | _CGIFUNCTION |
| Registered CGI function. More... | |
| struct | _CGIFUNCTION |
| Registered CGI function. More... | |
| struct | _REQUEST |
| HTTP request information structure. More... | |
| struct | _REQUEST |
| HTTP request information structure. More... | |
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. | |
| int | NutRegisterHttpRoot (char *path) |
| Register the HTTP server's root directory. | |
|
||||||||||||
|
Process an incoming CGI request. Applications do not need to call this function. It is automatically called by NutHttpProcessRequest().
|
|
|
Return the mime type description of a specified file name. The mime type returned is based on the file extension.
|
|
|
Validate an authorization request.
|
|
|
Process the next HTTP request. Waits for the next HTTP request on an established connection and processes it.
|
|
||||||||||||||||
|
Send a HTTP error response. A canned error file is used.
|
|
||||||||||||||||
|
Send bottom lines of a standard HTML header. Sends Content-Type, Content-Lenght and Connection lines.
|
|
||||||||||||||||||||
|
Send top lines of a standard HTML header. Sends HTTP and Server version lines.
|
|
||||||||||||
|
Register an authorization entry. Protect a specified directory from unauthorized access.
|
|
||||||||||||
|
Register a CGI function.
|
|
|
Register the HTTP server's root directory. Only one root directory is supported. Subsequent calls will override previous settings.
|