aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 14:16:10 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 14:16:10 +0000
commit549b0ecd86189b061c32be7d91d0498851965bd9 (patch)
treed7aa2c291fa23e439466fb1bd5cc2cf5bddade82 /src/libutil/http.h
parent05da599c5908e80dc5f569b43ba891af80fbe0fa (diff)
downloadrspamd-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.h7
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