diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 14:16:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 14:16:10 +0000 |
commit | 549b0ecd86189b061c32be7d91d0498851965bd9 (patch) | |
tree | d7aa2c291fa23e439466fb1bd5cc2cf5bddade82 /src/libutil/http.h | |
parent | 05da599c5908e80dc5f569b43ba891af80fbe0fa (diff) | |
download | rspamd-549b0ecd86189b061c32be7d91d0498851965bd9.tar.gz rspamd-549b0ecd86189b061c32be7d91d0498851965bd9.zip |
[Feature] Allow to specify custom method for a message
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index a28a6b389..23d2fa3fa 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -334,6 +334,13 @@ gboolean rspamd_http_message_set_body (struct rspamd_http_message *msg, const gchar *data, gsize len); /** + * Set message's method by name + * @param msg + * @param method + */ +void rspamd_http_message_set_method (struct rspamd_http_message *msg, + const gchar *method); +/** * Maps fd as message's body * @param msg * @param fd |