![]() |
Open Lighting Architecture
Latest Git
|
The embedded HTTP server.
Classes | |
| class | HTTPRequest |
| class | HTTPResponse |
| class | HTTPServer |
| The base HTTP Server. More... | |
| class | OlaHTTPServer |
Functions | |
| static MHD_RESULT | AddHeaders (void *cls, enum MHD_ValueKind kind, const char *key, const char *value) |
| Called by MHD_get_connection_values to add headers to a request object. More... | |
| MHD_RESULT | IteratePost (void *request_cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, uint64_t off, size_t size) |
| Called by MHD_create_post_processor to iterate over the post form data. More... | |
| static MHD_RESULT | HandleRequest (void *http_server_ptr, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **ptr) |
| Called whenever a new request is made. More... | |
| void | RequestCompleted (void *, struct MHD_Connection *, void **request_cls, enum MHD_RequestTerminationCode) |
| Called when a request completes. More... | |
|
static |
Called by MHD_get_connection_values to add headers to a request object.
| cls | a pointer to an HTTPRequest object. |
| kind | the source of the key-value pair |
| key | the header name |
| value | the header value |
|
static |
Called whenever a new request is made.
This sets up HTTPRequest & HTTPResponse objects and then calls DispatchRequest.
| MHD_RESULT ola::http::IteratePost | ( | void * | request_cls, |
| enum MHD_ValueKind | kind, | ||
| const char * | key, | ||
| const char * | filename, | ||
| const char * | content_type, | ||
| const char * | transfer_encoding, | ||
| const char * | data, | ||
| uint64_t | off, | ||
| size_t | size | ||
| ) |
Called by MHD_create_post_processor to iterate over the post form data.
| request_cls | a pointer to a HTTPRequest object |
| kind | the source of the key-value pair |
| key | the header name |
| filename | the name of the uploaded file or NULL if unknown |
| content_type | the MIME type of the data or NULL if unknown |
| transfer_encoding | the encoding of the data or NULL if unknown |
| data | the header value |
| off | the offset of the data |
| size | the number of bytes available |
| void ola::http::RequestCompleted | ( | void * | , |
| struct MHD_Connection * | , | ||
| void ** | request_cls, | ||
| enum | MHD_RequestTerminationCode | ||
| ) |
Called when a request completes.
This deletes the associated HTTPRequest object.
1.8.13