#include <internal.h>
Data Fields | |
struct MHD_HTTP_Header * | first_header |
char * | data |
void * | crc_cls |
MHD_ContentReaderCallback | crc |
MHD_ContentReaderFreeCallback | crfc |
pthread_mutex_t | mutex |
unsigned int | reference_count |
size_t | total_size |
size_t | data_size |
size_t | data_buffer_size |
size_t | data_start |
Definition at line 94 of file internal.h.
struct MHD_HTTP_Header* MHD_Response::first_header [read] |
Headers to send for the response. Initially the linked list is created in inverse order; the order should be inverted before sending!
Definition at line 102 of file internal.h.
Referenced by build_header_response(), MHD_add_response_header(), MHD_del_response_header(), MHD_destroy_response(), MHD_get_response_header(), and MHD_get_response_headers().
char* MHD_Response::data |
Buffer pointing to data that we are supposed to send as a response.
Definition at line 108 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_data(), and try_ready_normal_body().
void* MHD_Response::crc_cls |
Closure to give to the content reader free callback.
Definition at line 114 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_destroy_response(), try_ready_chunked_body(), and try_ready_normal_body().
How do we get more data? NULL if we are given all of the data up front.
Definition at line 120 of file internal.h.
Referenced by MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_data(), try_ready_chunked_body(), and try_ready_normal_body().
NULL if data must not be freed, otherwise either user-specified callback or "&free".
Definition at line 126 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), and MHD_destroy_response().
pthread_mutex_t MHD_Response::mutex |
Mutex to synchronize access to data/size and reference counts.
Definition at line 132 of file internal.h.
Referenced by MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_destroy_response(), and MHD_increment_response_rc().
unsigned int MHD_Response::reference_count |
Reference count for this response. Free once the counter hits zero.
Definition at line 138 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_destroy_response(), and MHD_increment_response_rc().
size_t MHD_Response::total_size |
Set to -1 if size is not known.
Definition at line 143 of file internal.h.
Referenced by add_extra_headers(), MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_queue_response(), try_ready_chunked_body(), and try_ready_normal_body().
size_t MHD_Response::data_size |
Size of data.
Definition at line 148 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_create_response_from_data(), and try_ready_normal_body().
Size of the data buffer.
Definition at line 153 of file internal.h.
Referenced by MHD_create_response_from_callback(), and try_ready_normal_body().
size_t MHD_Response::data_start |
At what offset in the stream is the beginning of data located?
Definition at line 159 of file internal.h.
Referenced by MHD_connection_handle_write(), and try_ready_normal_body().