Data Fields

MHD_Response Struct Reference

#include <internal.h>

Data Fields

struct MHD_HTTP_Headerfirst_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

Detailed Description

Representation of a response.

Definition at line 186 of file internal.h.


Field Documentation

How do we get more data? NULL if we are given all of the data up front.

Definition at line 212 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 218 of file internal.h.

Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), and MHD_destroy_response().

Buffer pointing to data that we are supposed to send as a response.

Definition at line 200 of file internal.h.

Referenced by MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_data(), try_ready_chunked_body(), and try_ready_normal_body().

Size of the data buffer.

Definition at line 250 of file internal.h.

Referenced by MHD_create_response_from_callback(), and try_ready_normal_body().

At what offset in the stream is the beginning of data located?

Definition at line 235 of file internal.h.

Referenced by MHD_connection_handle_write(), try_ready_chunked_body(), and try_ready_normal_body().

Offset to start reading from when using 'fd'.

Definition at line 240 of file internal.h.

Referenced by file_reader(), MHD_create_response_from_fd_at_offset(), and send_param_adapter().

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 194 of file internal.h.

Referenced by add_response_entry(), build_header_response(), MHD_del_response_header(), MHD_destroy_response(), MHD_get_response_header(), and MHD_get_response_headers().

pthread_mutex_t MHD_Response::mutex

Mutex to synchronize access to data/size and reference counts.

Definition at line 224 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().

Reference count for this response. Free once the counter hits zero.

Definition at line 256 of file internal.h.

Referenced by MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_destroy_response(), and MHD_increment_response_rc().


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