aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.h
diff options
context:
space:
mode:
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