|
GNU libmicrohttpd
0.9.5
|
#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 |
| uint64_t | total_size |
| uint64_t | data_start |
| off_t | fd_off |
| size_t | data_size |
| size_t | data_buffer_size |
| unsigned int | reference_count |
| int | fd |
Representation of a response.
How do we get more data? NULL if we are given all of the data up front.
Definition at line 230 of file internal.h.
Referenced by try_ready_normal_body(), try_ready_chunked_body(), MHD_connection_handle_write(), MHD_connection_handle_idle(), MHD_create_response_from_callback(), and MHD_create_response_from_data().
| void* MHD_Response::crc_cls |
Closure to give to the content reader free callback.
Definition at line 224 of file internal.h.
Referenced by try_ready_normal_body(), try_ready_chunked_body(), MHD_create_response_from_callback(), MHD_create_response_from_fd_at_offset(), MHD_create_response_from_data(), and MHD_destroy_response().
NULL if data must not be freed, otherwise either user-specified callback or "&free".
Definition at line 236 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), and MHD_destroy_response().
| char* MHD_Response::data |
Buffer pointing to data that we are supposed to send as a response.
Definition at line 218 of file internal.h.
Referenced by try_ready_normal_body(), try_ready_chunked_body(), MHD_connection_handle_write(), MHD_create_response_from_callback(), and MHD_create_response_from_data().
Size of the data buffer.
Definition at line 268 of file internal.h.
Referenced by try_ready_normal_body(), and MHD_create_response_from_callback().
| size_t MHD_Response::data_size |
Size of data.
Definition at line 263 of file internal.h.
Referenced by try_ready_normal_body(), try_ready_chunked_body(), MHD_connection_handle_write(), and MHD_create_response_from_data().
| uint64_t MHD_Response::data_start |
At what offset in the stream is the beginning of data located?
Definition at line 253 of file internal.h.
Referenced by try_ready_normal_body(), try_ready_chunked_body(), and MHD_connection_handle_write().
| int MHD_Response::fd |
File-descriptor if this response is FD-backed.
Definition at line 279 of file internal.h.
Referenced by try_ready_normal_body(), add_to_fd_set(), send_param_adapter(), MHD_create_response_from_callback(), file_reader(), free_callback(), MHD_create_response_from_fd_at_offset(), and MHD_create_response_from_data().
| off_t MHD_Response::fd_off |
Offset to start reading from when using 'fd'.
Definition at line 258 of file internal.h.
Referenced by send_param_adapter(), file_reader(), and MHD_create_response_from_fd_at_offset().
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 212 of file internal.h.
Referenced by build_header_response(), add_response_entry(), MHD_del_response_header(), MHD_get_response_headers(), MHD_get_response_header(), and MHD_destroy_response().
| pthread_mutex_t MHD_Response::mutex |
Mutex to synchronize access to data/size and reference counts.
Definition at line 242 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_connection_handle_idle(), 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 274 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_destroy_response(), and MHD_increment_response_rc().
| uint64_t MHD_Response::total_size |
Set to MHD_SIZE_UNKNOWN if size is not known.
Definition at line 247 of file internal.h.
Referenced by MHD_queue_response(), try_ready_normal_body(), try_ready_chunked_body(), add_extra_headers(), MHD_connection_handle_write(), send_param_adapter(), MHD_create_response_from_callback(), and MHD_create_response_from_data().