|
Procster
0.1
Procster-ViewProcessesovertheweb
|
MHD connection/request Helper data structure for maintaining the "state" of request data reading / parsing (as data is read in chunks) for HTTP methods that have a HTTP Body (POST, PUT). More...
Data Fields | |
| int | debug |
| int | is_parsing |
| State of parsing (INITED =0, PARSING, COMPLETE) More... | |
| int | contlen |
| Currently stored content length / length gotten from "Content-length". More... | |
| char * | conttype |
| Content type. More... | |
| char * | postdata |
| Body Content. More... | |
| int | size |
| int | used |
MHD connection/request Helper data structure for maintaining the "state" of request data reading / parsing (as data is read in chunks) for HTTP methods that have a HTTP Body (POST, PUT).
The state is maintained across multiple calls to MHD "answer_to_connection" (response handler) callback function. The last call to "answer_to_connection" will let response to be created. The reference implementation of this flow is in function named answer_to_connection in this file and will utilize post_body_parse as workhorse of parsing / assembling the POST body (into connection_info_struct, member postdata).
| int connection_info_struct::contlen |
Currently stored content length / length gotten from "Content-length".
Referenced by con_info_create().
| char* connection_info_struct::conttype |
Content type.
Referenced by con_info_create(), and con_info_destroy().
| int connection_info_struct::debug |
Referenced by con_info_create(), and post_body_parse().
| int connection_info_struct::is_parsing |
State of parsing (INITED =0, PARSING, COMPLETE)
Referenced by answer_to_connection1(), and post_body_parse().
| char* connection_info_struct::postdata |
Body Content.
Referenced by answer_to_connection(), answer_to_connection1(), con_info_create(), con_info_destroy(), and post_body_parse().
| int connection_info_struct::size |
Referenced by con_info_create(), post_body_parse(), and trystatic().
| int connection_info_struct::used |
Referenced by post_body_parse().