Included Files
- #include <nut/include/cfg/arch.h>
- #include <nut/include/cfg/http.h>
- #include <nut/include/include2/string.h>
- #include <nut/include/io.h>
- #include <nut/include/fcntl.h>
- #include <nut/include/include2/ctype.h>
- #include <nut/include/sys/stat.h>
- #include <nut/include/memdebug.h>
- #include <nut/include/sys/heap.h>
- #include <nut/include/sys/version.h>
- #include <nut/include/pro/rfctime.h>
- #include <nut/include/pro/httpd.h>
Preprocessor definitions
#define HTTP_MAJOR_VERSION 1
#define HTTP_MINOR_VERSION 1
#define HTTP_KEEP_ALIVE_REQ 0
#define HTTP_MAX_REQUEST_SIZE 256
#define HTTP_FILE_CHUNK_SIZE 512
#define HTTPD_SUPPORT_GZIP 0
#define NUM_REQUEST_LOOKUP
#define MAX_REQUEST_NAME_SIZE 17
#define GZIP_ID 0x8b1f
typedef struct _REQUEST_LOOKUP REQUEST_LOOKUP
struct _REQUEST_LOOKUP
|
|
{
|
|
uint_fast8_t rlu_len;
|
|
char* rlu_str;
|
|
}
|
|
MIMETYPES mimeTypes[]
Local Variables
req_lookup
static const REQUEST_LOOKUP req_lookup[]
http_optflags
static uint32_t http_optflags
void* NutGetMimeHandler ( char* name )
char* NutGetMimeType ( char* name )
uint32_t NutHttpGetOptionFlags ( void )
void NutHttpProcessQueryString ( REQUEST* req )
void NutHttpProcessRequest ( FILE* stream )
void NutHttpSendError ( FILE* stream, REQUEST* req, int status )
void NutHttpSendHeaderBot ( FILE* stream, char* mime_type, long bytes )
void NutHttpSendHeaderBottom ( FILE* stream, REQUEST* req, char* mime_type, long bytes )
void NutHttpSendHeaderTop ( FILE* stream, REQUEST* req, int status, char* title )
void NutHttpSetOptionFlags ( uint32_t flags )
void NutHttpURLDecode ( char* str )
int NutRegisterHttpRoot ( char* path )
static REQUEST* CreateRequestInfo ( void )
static MIMETYPES* GetMimeEntry ( char* name )
static int HeaderFieldValue ( char** hfvp, const char* str )
static int NextHeaderName ( FILE* stream, uint_fast8_t* idx )
static char* NextWord ( char* str )
static void NutHttpProcessFileRequest ( FILE* stream, REQUEST* req )
static void NutHttpSendHeaderBottomEx ( FILE* stream, REQUEST* req, char* mime_type, long bytes, unsigned short first2bytes )
static int ParserHeaderLines ( FILE* stream, REQUEST* req )
static void SkipLine ( FILE* stream )