GNU libmicrohttpd
0.9.29
|
Methods for managing response objects. More...
Go to the source code of this file.
Macros | |
#define | MHD_NO_DEPRECATION 1 |
Methods for managing response objects.
Definition in file response.c.
#define MHD_NO_DEPRECATION 1 |
Definition at line 27 of file response.c.
|
static |
Add a header or footer line to the response.
response | response to add a header to |
kind | header or footer |
header | the header to add |
content | value to add |
Definition at line 54 of file response.c.
References MHD_Response::first_header, MHD_HTTP_Header::header, MHD_HTTP_Header::kind, MHD_NO, MHD_YES, MHD_HTTP_Header::next, NULL, and MHD_HTTP_Header::value.
Referenced by MHD_add_response_footer(), and MHD_add_response_header().
|
static |
Given a file descriptor, read data from the file to generate the response.
cls | pointer to the response |
pos | offset in the file to access |
buf | where to write the data |
max | number of bytes to write at most |
Definition at line 319 of file response.c.
References MHD_Response::fd, MHD_Response::fd_off, INT32_MAX, MHD_CONTENT_READER_END_OF_STREAM, and MHD_CONTENT_READER_END_WITH_ERROR.
Referenced by MHD_create_response_from_fd_at_offset64().
|
static |
Destroy file reader context. Closes the file descriptor.
cls | pointer to file descriptor |
Definition at line 369 of file response.c.
References MHD_Response::fd.
Referenced by MHD_create_response_from_fd_at_offset64().
void MHD_increment_response_rc | ( | struct MHD_Response * | response | ) |
Increment response RC. Should this be part of the public API?
Definition at line 603 of file response.c.
References MHD_Response::mutex, and MHD_Response::reference_count.
Referenced by MHD_queue_response().
int MHD_set_response_options | ( | struct MHD_Response * | response, |
enum MHD_ResponseFlags | flags, | ||
... | |||
) |
Set special flags and options for a response.
response | the response to modify |
flags | to set for the response |
... | MHD_RO_END terminated list of options |
Definition at line 283 of file response.c.
References MHD_Response::flags, MHD_NO, MHD_RO_END, and MHD_YES.