aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-07-22 16:32:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-07-28 07:21:33 +0300
commit13db035fc9e191e99dbaf3507e45516eb4ffeabd (patch)
tree6c62d1e6ead16161efd7bab5d4ddb3e11d64f5fa /src/microhttpd/response.h
parent012a2d3bb1ac56ada756e6640a8e7c7cd3120af4 (diff)
downloadlibmicrohttpd-13db035fc9e191e99dbaf3507e45516eb4ffeabd.tar.gz
libmicrohttpd-13db035fc9e191e99dbaf3507e45516eb4ffeabd.zip
MHD_add_response_entry(): refactoring + added internal function
Diffstat (limited to 'src/microhttpd/response.h')
-rw-r--r--src/microhttpd/response.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/microhttpd/response.h b/src/microhttpd/response.h
index ba6c4ab8..4f9c32c9 100644
--- a/src/microhttpd/response.h
+++ b/src/microhttpd/response.h
@@ -73,4 +73,26 @@ MHD_get_response_element_n_ (struct MHD_Response *response,
73 const char *key, 73 const char *key,
74 size_t key_len); 74 size_t key_len);
75 75
76/**
77 * Add a header or footer line to the response without checking.
78 *
79 * It is assumed that parameters are correct.
80 *
81 * @param response response to add a header to
82 * @param kind header or footer
83 * @param header the header to add, does not need to be zero-terminated
84 * @param header_len the length of the @a header
85 * @param content value to add, does not need to be zero-terminated
86 * @param content_len the length of the @a content
87 * @return false on error (like out-of-memory),
88 * true if succeed
89 */
90bool
91MHD_add_response_entry_no_check_ (struct MHD_Response *response,
92 enum MHD_ValueKind kind,
93 const char *header,
94 size_t header_len,
95 const char *content,
96 size_t content_len);
97
76#endif 98#endif