File nut/include/pro/uhttp/uhttpd.h


Included Files


Preprocessor definitions

#define _PRO_UHTTP_UHTTP_H_

#define HTTP_MAJOR_VERSION 1

#define HTTP_MINOR_VERSION 1

#define HTTP_VERSION 0x11

#define HTTP_METHOD_GET 1

#define HTTP_METHOD_POST 2

#define HTTP_METHOD_HEAD 3

#define HTTP_CONN_CLOSE 1

#define HTTP_CONN_KEEP_ALIVE 2

#define HTTP_ROOT


Typedef HTTP_REQUEST

typedef struct _HTTP_REQUEST HTTP_REQUEST
See: Type struct _HTTP_REQUEST

Type struct _HTTP_REQUEST

struct _HTTP_REQUEST
struct _HTTP_REQUEST  
   {  
      int req_method;  
      char* req_url;  
      int req_version;  
      char* req_query;  
      char* req_argp;  
      char* req_argn;  
      char* req_argv;  
      int req_connection;  
      long req_length;  
      char* req_realm;  
      char* req_type;  
      char* req_cookie;  
      char* req_auth;  
      char* req_agent;  
      time_t req_ims;  
      char* req_referer;  
      char* req_host;  
      char* req_encoding;  
      char* req_bnd_dispo;  
      char* req_bnd_type;  
   }  

Typedef HTTPD_SESSION

typedef struct _HTTPD_SESSION HTTPD_SESSION
See: Type struct _HTTPD_SESSION

Type struct _HTTPD_SESSION

struct _HTTPD_SESSION
struct _HTTPD_SESSION  
   {  
      HTTP_STREAM* s_stream;  
      HTTP_REQUEST s_req;  
   }  

Typedef HTTP_AUTH_VALIDATOR

typedef int (*HTTP_AUTH_VALIDATOR)(HTTPD_SESSION*)

Typedef HTTP_LOC_REDIRECTOR

typedef int (*HTTP_LOC_REDIRECTOR)(HTTPD_SESSION*)

External Variables

ct_GET
extern const char ct_GET[]
Defined in: nut/pro/uhttp/uhttpd.c

ct_HEAD
extern const char ct_HEAD[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_POST
extern const char ct_POST[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Content_Disposition
extern const char ct_Content_Disposition[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Content_Type
extern const char ct_Content_Type[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Accept_Encoding
extern const char ct_Accept_Encoding[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Authorization
extern const char ct_Authorization[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Connection
extern const char ct_Connection[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_close
extern const char ct_close[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Keep_Alive
extern const char ct_Keep_Alive[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Content_Length
extern const char ct_Content_Length[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Cookie
extern const char ct_Cookie[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Host
extern const char ct_Host[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Referer
extern const char ct_Referer[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_User_Agent
extern const char ct_User_Agent[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Content_Encoding
extern const char ct_Content_Encoding[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Location
extern const char ct_Location[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_If_Modified_Since
extern const char ct_If_Modified_Since[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Last_Modified
extern const char ct_Last_Modified[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Expires
extern const char ct_Expires[]

Defined in: nut/pro/uhttp/uhttpd.c

ct_Date
extern const char ct_Date[]

Defined in: nut/pro/uhttp/uhttpd.c

http_root_path
extern char* http_root_path

Defined in: nut/pro/uhttp/uhttpd.c

httpd_auth_validator
extern HTTP_AUTH_VALIDATOR httpd_auth_validator

Defined in: nut/pro/uhttp/uhttpd.c

httpd_loc_redirector
extern HTTP_LOC_REDIRECTOR httpd_loc_redirector

Defined in: nut/pro/uhttp/uhttpd.c