diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-26 14:15:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-26 14:15:50 +0200 |
commit | 1c4f23db7458d79a04c8e68022ade67cb5ee006b (patch) | |
tree | ca30e21e645f50d9a230ae29ef3cf21056a96279 /doc | |
parent | babda9e9c702aee6e03e7537108383e32a7c17d0 (diff) | |
download | libmicrohttpd-1c4f23db7458d79a04c8e68022ade67cb5ee006b.tar.gz libmicrohttpd-1c4f23db7458d79a04c8e68022ade67cb5ee006b.zip |
add ability to serve files from pipe
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libmicrohttpd.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi index 150dd048..fd776028 100644 --- a/doc/libmicrohttpd.texi +++ b/doc/libmicrohttpd.texi | |||
@@ -2018,6 +2018,21 @@ Return @code{NULL} on error (i.e. invalid arguments, out of memory). | |||
2018 | @end deftypefun | 2018 | @end deftypefun |
2019 | 2019 | ||
2020 | 2020 | ||
2021 | @deftypefun {struct MHD_Response *} MHD_create_response_from_pipe (uint64_t size, int fd) | ||
2022 | Create a response object. The response object can be extended with | ||
2023 | header information and then it can be used ONLY ONCE. | ||
2024 | |||
2025 | @table @var | ||
2026 | @item fd | ||
2027 | file descriptor of the read-end of the pipe; will be | ||
2028 | closed when response is destroyed. | ||
2029 | The descriptor should be in blocking-IO mode. | ||
2030 | @end table | ||
2031 | |||
2032 | Return @code{NULL} on error (i.e. out of memory). | ||
2033 | @end deftypefun | ||
2034 | |||
2035 | |||
2021 | @deftypefun {struct MHD_Response *} MHD_create_response_from_fd_at_offset (size_t size, int fd, off_t offset) | 2036 | @deftypefun {struct MHD_Response *} MHD_create_response_from_fd_at_offset (size_t size, int fd, off_t offset) |
2022 | Create a response object. The response object can be extended with | 2037 | Create a response object. The response object can be extended with |
2023 | header information and then it can be used any number of times. | 2038 | header information and then it can be used any number of times. |