diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 4e133786..5edf8f98 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -1201,6 +1201,21 @@ struct MHD_Response *MHD_create_response_from_data (size_t size, | |||
1201 | struct MHD_Response *MHD_create_response_from_fd (size_t size, | 1201 | struct MHD_Response *MHD_create_response_from_fd (size_t size, |
1202 | int fd); | 1202 | int fd); |
1203 | 1203 | ||
1204 | |||
1205 | /** | ||
1206 | * Create a response object. The response object can be extended with | ||
1207 | * header information and then be used any number of times. | ||
1208 | * | ||
1209 | * @param size size of the data portion of the response | ||
1210 | * @param fd file descriptor referring to a file on disk with the data; will be closed when response is destroyed | ||
1211 | * @param off offset to start reading from in the file | ||
1212 | * @return NULL on error (i.e. invalid arguments, out of memory) | ||
1213 | */ | ||
1214 | struct MHD_Response *MHD_create_response_from_fd_at_offset (size_t size, | ||
1215 | int fd, | ||
1216 | off_t offset); | ||
1217 | |||
1218 | |||
1204 | /** | 1219 | /** |
1205 | * Destroy a response object and associated resources. Note that | 1220 | * Destroy a response object and associated resources. Note that |
1206 | * libmicrohttpd may keep some of the resources around if the response | 1221 | * libmicrohttpd may keep some of the resources around if the response |