Procster  0.1
Procster-ViewProcessesovertheweb
connection_info_struct Struct Reference

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
 

Detailed Description

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).

Field Documentation

◆ contlen

int connection_info_struct::contlen

Currently stored content length / length gotten from "Content-length".

Referenced by con_info_create().

◆ conttype

char* connection_info_struct::conttype

Content type.

Referenced by con_info_create(), and con_info_destroy().

◆ debug

int connection_info_struct::debug

Referenced by con_info_create(), and post_body_parse().

◆ is_parsing

int connection_info_struct::is_parsing

State of parsing (INITED =0, PARSING, COMPLETE)

Referenced by answer_to_connection1(), and post_body_parse().

◆ postdata

char* connection_info_struct::postdata

◆ size

int connection_info_struct::size

◆ used

int connection_info_struct::used

Referenced by post_body_parse().


The documentation for this struct was generated from the following file: