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

#include </builddir/build/BUILD/libmicrohttpd-0.9.77/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
 
struct MHD_HTTP_Headerlast_header
 
enum MHD_ResponseFlags flags
 
enum MHD_ResponseAutoFlags flags_auto
 
bool is_pipe
 
MHD_iovec_data_iov
 
unsigned int data_iovcnt
 

Detailed Description

Representation of an HTTP response.

Representation of a response.

Definition at line 1567 of file internal.h.

Field Documentation

◆ action

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

◆ crc

◆ crc_cls

◆ crfc

◆ data

◆ data_buffer_size

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_create_response_from_data(), MHD_response_from_callback(), try_ready_normal_body(), 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 549 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 554 of file internal.h.

Referenced by MHD_create_response_from_iovec(), and try_ready_normal_body().

◆ data_size

size_t MHD_Response::data_size

◆ data_start

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

◆ fd

◆ fd_off

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

◆ first_header

struct MHD_HTTP_Header * MHD_Response::first_header

◆ flags

enum MHD_ResponseFlags MHD_Response::flags

◆ flags_auto

◆ icy

bool MHD_Response::icy

Use ShoutCAST format.

Definition at line 1690 of file internal.h.

Referenced by build_header_response().

◆ is_pipe

bool MHD_Response::is_pipe

If the fd is a pipe (no sendfile()).

Definition at line 544 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_Header* MHD_Response::last_header

Tail of double-linked list of headers to send for the response.

Definition at line 444 of file internal.h.

◆ mutex

◆ reference_count

◆ status_code

enum MHD_HTTP_StatusCode MHD_Response::status_code

◆ termination_cb

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

◆ termination_cb_cls

void* MHD_Response::termination_cb_cls

◆ total_size

◆ v10_only

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


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