GNU libmicrohttpd 1.0.1
|
#include </home/lkp/rpmbuild/BUILD/libmicrohttpd-1.0.1/src/lib/internal.h>
Representation of an HTTP response.
Representation of a response.
Definition at line 1567 of file internal.h.
struct MHD_Action MHD_Response::action |
A response is an action. See also MHD_action_from_response(). Hence this field must be the first field in a response!
Definition at line 1575 of file internal.h.
Referenced by MHD_action_from_response().
MHD_ContentReaderCallback MHD_Response::crc |
How do we get more data? NULL if we are given all of the data up front.
Definition at line 1600 of file internal.h.
Referenced by MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_request_handle_idle_(), MHD_request_handle_write_(), MHD_response_from_callback(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
void * MHD_Response::crc_cls |
Closure to give to the content reader crc and content reader free callback crfc.
Definition at line 1594 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_create_response_from_fd_at_offset64(), MHD_create_response_from_iovec(), MHD_create_response_from_pipe(), MHD_destroy_response(), MHD_response_from_buffer(), MHD_response_from_callback(), MHD_response_from_fd(), MHD_response_queue_for_destroy(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
MHD_ContentReaderFreeCallback MHD_Response::crfc |
NULL if data must not be freed, otherwise either user-specified callback or "&free".
Definition at line 1606 of file internal.h.
Referenced by MHD_create_response_from_buffer_with_free_callback(), MHD_create_response_from_buffer_with_free_callback_cls(), MHD_create_response_from_callback(), MHD_create_response_from_iovec(), MHD_destroy_response(), MHD_response_from_buffer(), MHD_response_from_callback(), and MHD_response_queue_for_destroy().
char* MHD_Response::data |
Buffer pointing to data that we are supposed to send as a response.
Definition at line 1588 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_iovec(), MHD_request_handle_write_(), MHD_response_from_buffer(), MHD_response_from_callback(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
Buffer pointing to data that we are supposed to send as a response.
Definition at line 489 of file internal.h.
size_t MHD_Response::data_buffer_size |
Size of the data buffer data.
Size of the writable data buffer data.
Definition at line 1664 of file internal.h.
Referenced by MHD_create_response_from_callback(), MHD_response_from_callback(), try_ready_normal_body(), and try_ready_normal_body().
MHD_iovec_* MHD_Response::data_iov |
I/O vector used with MHD_create_response_from_iovec.
Definition at line 588 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_create_response_from_iovec(), MHD_destroy_response(), MHD_send_iovec_(), and try_ready_normal_body().
Number of elements in data_iov.
Definition at line 593 of file internal.h.
Referenced by MHD_create_response_from_iovec(), and try_ready_normal_body().
size_t MHD_Response::data_size |
Number of bytes ready in data (buffer may be larger than what is filled with payload).
Definition at line 1659 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_create_response_from_iovec(), MHD_request_handle_write_(), MHD_response_from_buffer(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
uint64_t MHD_Response::data_start |
At what offset in the stream is the beginning of data located?
Definition at line 1648 of file internal.h.
Referenced by MHD_connection_handle_write(), MHD_request_handle_write_(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
int MHD_Response::fd |
File-descriptor if this response is FD-backed.
Definition at line 1680 of file internal.h.
Referenced by file_reader(), file_reader(), free_callback(), free_callback(), MHD_create_response_empty(), MHD_create_response_from_callback(), MHD_create_response_from_fd_at_offset64(), MHD_create_response_from_iovec(), MHD_create_response_from_pipe(), MHD_queue_response(), MHD_response_from_buffer(), MHD_response_from_callback(), MHD_response_from_fd(), pipe_reader(), and response_action().
uint64_t MHD_Response::fd_off |
Offset to start reading from when using fd.
Definition at line 1653 of file internal.h.
Referenced by file_reader(), file_reader(), MHD_create_response_from_fd_at_offset64(), and MHD_response_from_fd().
struct MHD_HTTP_Header* MHD_Response::first_header |
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 1582 of file internal.h.
Referenced by add_response_entry(), build_header_response(), check_response_header_token_ci(), MHD_check_response_header_token_ci(), MHD_del_response_header(), MHD_destroy_response(), MHD_get_response_element_n_(), MHD_get_response_header(), MHD_get_response_headers(), MHD_queue_response(), MHD_response_del_header(), MHD_response_get_header(), MHD_response_get_headers(), and MHD_response_queue_for_destroy().
struct MHD_HTTP_Res_Header* MHD_Response::first_header |
Head of double-linked list of headers to send for the response.
Definition at line 478 of file internal.h.
enum MHD_ResponseFlags MHD_Response::flags |
Flags set for the MHD response.
Definition at line 573 of file internal.h.
Referenced by keepalive_possible(), MHD_add_response_header(), MHD_create_response_empty(), MHD_queue_response(), and MHD_set_response_options().
enum MHD_ResponseAutoFlags MHD_Response::flags_auto |
Automatic flags set for the MHD response.
Definition at line 578 of file internal.h.
Referenced by add_response_header_connection(), del_response_header_connection(), MHD_add_response_header(), MHD_del_response_header(), MHD_queue_response(), and MHD_set_response_options().
bool MHD_Response::icy |
Use ShoutCAST format.
Definition at line 1690 of file internal.h.
Referenced by build_header_response().
bool MHD_Response::is_pipe |
If the fd is a pipe (no sendfile()).
Definition at line 583 of file internal.h.
Referenced by MHD_create_response_from_fd_at_offset64(), MHD_create_response_from_pipe(), and MHD_queue_response().
struct MHD_HTTP_Res_Header* MHD_Response::last_header |
Tail of double-linked list of headers to send for the response.
Definition at line 483 of file internal.h.
MHD_mutex_ MHD_Response::mutex |
Mutex to synchronize access to data, size and reference_count.
Definition at line 1637 of file internal.h.
Referenced by MHD_action_from_response(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_iovec(), MHD_destroy_response(), MHD_increment_response_rc(), MHD_request_handle_idle_(), MHD_request_handle_write_(), MHD_response_for_upgrade(), MHD_response_from_buffer(), MHD_response_from_callback(), MHD_response_queue_for_destroy(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
Reference count for this response. Free once the counter hits zero.
Definition at line 1675 of file internal.h.
Referenced by MHD_action_from_response(), MHD_create_response_from_callback(), MHD_create_response_from_iovec(), MHD_destroy_response(), MHD_increment_response_rc(), MHD_response_for_upgrade(), MHD_response_from_buffer(), MHD_response_from_callback(), and MHD_response_queue_for_destroy().
enum MHD_HTTP_StatusCode MHD_Response::status_code |
HTTP status code of the response.
Definition at line 1669 of file internal.h.
Referenced by build_header_response(), MHD_request_handle_idle_(), MHD_response_for_upgrade(), MHD_response_from_buffer(), MHD_response_from_callback(), response_action(), transmit_error_response(), and transmit_error_response_len().
MHD_RequestTerminationCallback MHD_Response::termination_cb |
Function to call once MHD is finished with the request, may be NULL.
Definition at line 1612 of file internal.h.
Referenced by MHD_request_handle_idle_(), MHD_response_option_termination_callback(), MHD_resume_suspended_connections_(), and thread_main_handle_connection().
void* MHD_Response::termination_cb_cls |
Closure for termination_cb.
Definition at line 1617 of file internal.h.
Referenced by MHD_request_handle_idle_(), MHD_response_option_termination_callback(), MHD_resume_suspended_connections_(), and thread_main_handle_connection().
uint64_t MHD_Response::total_size |
Set to MHD_SIZE_UNKNOWN if size is not known.
The size of the response body. Set to MHD_SIZE_UNKNOWN if size is not known.
Definition at line 1642 of file internal.h.
Referenced by build_header_response(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_create_response_from_callback(), MHD_create_response_from_iovec(), MHD_queue_response(), MHD_request_handle_idle_(), MHD_request_handle_write_(), MHD_response_for_upgrade(), MHD_response_from_buffer(), MHD_response_from_callback(), MHD_set_response_options(), response_action(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), and try_ready_normal_body().
bool MHD_Response::v10_only |
Only respond in HTTP 1.0 mode.
Definition at line 1685 of file internal.h.
Referenced by build_header_response(), keepalive_possible(), and MHD_response_option_v10_only().