46 #ifndef ti_net_http__URLHandler__include 47 #define ti_net_http__URLHandler__include 58 #define URLHandler_GET 1 59 #define URLHandler_POST 2 60 #define URLHandler_PUT 3 61 #define URLHandler_PATCH 4 62 #define URLHandler_DELETE 5 64 #define URLHandler_ENOTHANDLED 0 65 #define URLHandler_EHANDLED 1 66 #define URLHandler_EERRORHANDLED 2 67 #define URLHandler_EHANDLEDSTOP 3 105 URLHandler_Session session);
166 const char * url,
const char * urlArgs,
int contentLength,
int s);
187 const char * url,
const char * field);
214 typedef void (*URLHandler_SendFxn)(URLHandler_Handle u,
int s);
void * params
Parameters needed for URL Handler instantiation.
Definition: urlhandler.h:230
void * reserved1
This field is reserved - set to NULL.
Definition: urlhandler.h:255
URLHandler_CreateFxn create
URL Handler Create function.
Definition: urlhandler.h:235
URLHandler_DeleteFxn del
URL Handler Delete function.
Definition: urlhandler.h:240
struct URLHandler_State * URLHandler_Session
Definition: urlhandler.h:78
int(* URLHandler_ProcessFxn)(URLHandler_Handle u, int method, const char *url, const char *urlArgs, int contentLength, int s)
Process an HTTP request.
Definition: urlhandler.h:165
void(* URLHandler_ScanFieldFxn)(URLHandler_Handle u, int method, const char *url, const char *field)
Scan for specific request headers.
Definition: urlhandler.h:186
struct URLHandler_Setup URLHandler_Setup
Structure containing URL Handler components.
Structure containing URL Handler components.
Definition: urlhandler.h:226
struct URLHandler_Object * URLHandler_Handle
A placeholder used to refer to a user-defined type.
Definition: urlhandler.h:77
void(* URLHandler_DeleteFxn)(URLHandler_Handle *u)
Delete a URLHandler.
Definition: urlhandler.h:200
URLHandler_ProcessFxn process
URL Handler Process function.
Definition: urlhandler.h:245
URLHandler_ScanFieldFxn scanField
Scan field function.
Definition: urlhandler.h:250
URLHandler_Handle(* URLHandler_CreateFxn)(void *params, URLHandler_Session session)
Create a user-defined URLHandler_Object.
Definition: urlhandler.h:104