GNU libmicrohttpd 1.0.2
Loading...
Searching...
No Matches
MHD_Response Struct Reference

#include </builddir/build/BUILD/libmicrohttpd-1.0.2-build/libmicrohttpd-1.0.2/src/microhttpd/internal.h>

Data Fields

struct MHD_HTTP_Res_Headerfirst_header
 
struct MHD_HTTP_Res_Headerlast_header
 
const char * data
 
void * crc_cls
 
MHD_ContentReaderCallback crc
 
MHD_ContentReaderFreeCallback crfc
 
uint64_t total_size
 
uint64_t data_start
 
uint64_t fd_off
 
size_t data_size
 
size_t data_buffer_size
 
unsigned int reference_count
 
int fd
 
enum MHD_ResponseFlags flags
 
enum MHD_ResponseAutoFlags flags_auto
 
bool is_pipe
 
MHD_iovec_data_iov
 
unsigned int data_iovcnt
 

Detailed Description

Representation of a response.

Definition at line 472 of file internal.h.

Field Documentation

◆ crc

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

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

◆ crc_cls

◆ crfc

MHD_ContentReaderFreeCallback MHD_Response::crfc

NULL if data must not be freed, otherwise either user-specified callback or "&free".

Definition at line 507 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(), and MHD_destroy_response().

◆ data

const char* MHD_Response::data

◆ data_buffer_size

size_t MHD_Response::data_buffer_size

Size of the writable data buffer data.

Definition at line 557 of file internal.h.

Referenced by MHD_create_response_from_buffer_copy(), MHD_create_response_from_callback(), and try_ready_normal_body().

◆ data_iov

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().

◆ data_iovcnt

unsigned int MHD_Response::data_iovcnt

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().

◆ data_size

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

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

◆ data_start

uint64_t MHD_Response::data_start

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

Definition at line 541 of file internal.h.

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

◆ fd

◆ fd_off

uint64_t MHD_Response::fd_off

Offset to start reading from when using fd.

Definition at line 546 of file internal.h.

Referenced by file_reader(), and MHD_create_response_from_fd_at_offset64().

◆ first_header

◆ flags

◆ flags_auto

◆ is_pipe

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().

◆ last_header

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.

◆ reference_count

unsigned int MHD_Response::reference_count

◆ total_size


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