GNU libmicrohttpd  0.9.62
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
MHD_Response Struct Reference

#include </opt/rpmbuild/rpmbuild/BUILD/libmicrohttpd-0.9.62/src/lib/internal.h>

Data Fields

struct MHD_Action action
 
struct MHD_HTTP_Headerfirst_header
 
char * data
 
void * crc_cls
 
MHD_ContentReaderCallback crc
 
MHD_ContentReaderFreeCallback crfc
 
MHD_RequestTerminationCallback termination_cb
 
void * termination_cb_cls
 
MHD_mutex_ mutex
 
uint64_t total_size
 
uint64_t data_start
 
uint64_t fd_off
 
size_t data_size
 
size_t data_buffer_size
 
enum MHD_HTTP_StatusCode status_code
 
unsigned int reference_count
 
int fd
 
bool v10_only
 
bool icy
 
enum MHD_ResponseFlags flags
 

Detailed Description

Representation of an HTTP response.

Representation of a response.

Definition at line 1564 of file internal.h.

Field Documentation

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

Referenced by MHD_action_from_response().

char * MHD_Response::data
size_t MHD_Response::data_buffer_size

Size of the data buffer data.

Definition at line 1661 of file internal.h.

Referenced by MHD_create_response_from_callback(), MHD_response_from_callback(), 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 1656 of file internal.h.

Referenced by MHD_connection_handle_write(), MHD_create_response_from_data(), MHD_request_handle_write_(), MHD_response_from_buffer(), try_ready_chunked_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 1645 of file internal.h.

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

uint64_t MHD_Response::fd_off

Offset to start reading from when using fd.

Definition at line 1650 of file internal.h.

Referenced by file_reader(), MHD_create_response_from_fd_at_offset64(), and MHD_response_from_fd().

struct MHD_HTTP_Header * MHD_Response::first_header
enum MHD_ResponseFlags MHD_Response::flags

Flags set for the MHD response.

Definition at line 387 of file internal.h.

Referenced by build_header_response(), keepalive_possible(), and MHD_set_response_options().

bool MHD_Response::icy

Use ShoutCAST format.

Definition at line 1687 of file internal.h.

Referenced by build_header_response().

unsigned int MHD_Response::reference_count
enum MHD_HTTP_StatusCode MHD_Response::status_code
MHD_RequestTerminationCallback MHD_Response::termination_cb

Function to call once MHD is finished with the request, may be NULL.

Definition at line 1609 of file internal.h.

Referenced by MHD_request_handle_idle_(), MHD_response_option_termination_callback(), and thread_main_handle_connection().

void* MHD_Response::termination_cb_cls

Closure for termination_cb.

Definition at line 1614 of file internal.h.

Referenced by MHD_request_handle_idle_(), MHD_response_option_termination_callback(), and thread_main_handle_connection().

bool MHD_Response::v10_only

Only respond in HTTP 1.0 mode.

Definition at line 1682 of file internal.h.

Referenced by build_header_response(), keepalive_possible(), and MHD_response_option_v10_only().


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