Go to the source code of this file.
|
http_handler_t * | http_handler_add (http_handler_t *handlers, http_handler_t *handler) |
|
int | http_handler_next (http_connection_t *connection, const char *method, const char *url, gsad_connection_info_t *con_info, http_handler_t *handler, void *data) |
|
int | http_handler_start (http_connection_t *connection, const char *method, const char *url, gsad_connection_info_t *con_info, http_handler_t *handler, void *data) |
|
http_handler_t * | http_handler_new (http_handler_func_t) |
|
void | http_handler_free (http_handler_t *handler) |
|
http_handler_t * | init_http_handlers () |
|
void | cleanup_http_handlers () |
|
http_handler_t * | url_handler_new (const gchar *regexp, http_handler_t *handler) |
|
http_handler_t * | url_handler_add_func (http_handler_t *handlers, const gchar *regexp, http_handler_func_t handle) |
|
http_handler_t * | method_router_new () |
|
void | method_router_set_get_handler (http_handler_t *router, http_handler_t *handler) |
|
void | method_router_set_post_handler (http_handler_t *router, http_handler_t *handler) |
|
int | handle_request (void *cls, http_connection_t *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls) |
| HTTP request handler for GSAD. More...
|
|
◆ http_handler_free_func_t
◆ http_handler_func_t
◆ http_handler_t
◆ cleanup_http_handlers()
void cleanup_http_handlers |
( |
| ) |
|
◆ handle_request()
int handle_request |
( |
void * |
cls, |
|
|
http_connection_t * |
connection, |
|
|
const char * |
url, |
|
|
const char * |
method, |
|
|
const char * |
version, |
|
|
const char * |
upload_data, |
|
|
size_t * |
upload_data_size, |
|
|
void ** |
con_cls |
|
) |
| |
HTTP request handler for GSAD.
This routine is an MHD_AccessHandlerCallback, the request handler for microhttpd.
- Parameters
-
[in] | cls | A pointer to http_handler_t |
[in] | connection | Connection handle, e.g. used to send response. |
[in] | url | The URL requested. |
[in] | method | "GET" or "POST", others are disregarded. |
[in] | version | Not used for this callback. |
[in] | upload_data | Data used for POST requests. |
[in] | upload_data_size | Size of upload_data. |
[out] | con_cls | For exchange of connection-related data (here a struct gsad_connection_info). |
- Returns
- MHD_NO in case of problems. MHD_YES if all is OK.
◆ http_handler_add()
◆ http_handler_free()
◆ http_handler_new()
◆ http_handler_next()
◆ http_handler_start()
◆ init_http_handlers()
◆ method_router_new()
◆ method_router_set_get_handler()
◆ method_router_set_post_handler()
◆ url_handler_add_func()
◆ url_handler_new()