diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-10 15:50:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-10 15:50:05 +0100 |
commit | f85965a72957a9cf9d1c1a5643fc0b15fb274f9a (patch) | |
tree | 6cdc7bdaac61f0343584aa76b75f840d17ab15bc /src/libutil/http.h | |
parent | 328703c09e3a22f7df01010aca1a21b167735504 (diff) | |
download | rspamd-f85965a72957a9cf9d1c1a5643fc0b15fb274f9a.tar.gz rspamd-f85965a72957a9cf9d1c1a5643fc0b15fb274f9a.zip |
[Feature] Add more methods to init http message body
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index bb5f8d8a7..ab71f619b 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -284,6 +284,24 @@ gboolean rspamd_http_message_set_body_from_fd (struct rspamd_http_message *msg, gint fd); /** + * Uses rspamd_fstring_t as message's body, string is consumed by this operation + * @param msg + * @param fstr + * @return TRUE if a message's body has been set + */ +gboolean rspamd_http_message_set_body_from_fstring_steal (struct rspamd_http_message *msg, + rspamd_fstring_t *fstr); + +/** + * Uses rspamd_fstring_t as message's body, string is copied by this operation + * @param msg + * @param fstr + * @return TRUE if a message's body has been set + */ +gboolean rspamd_http_message_set_body_from_fstring_copy (struct rspamd_http_message *msg, + const rspamd_fstring_t *fstr); + +/** * Appends data to message's body * @param msg * @param data |