From 549b0ecd86189b061c32be7d91d0498851965bd9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 6 Feb 2017 14:16:10 +0000 Subject: [Feature] Allow to specify custom method for a message --- src/libutil/http.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libutil/http.h') 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 @@ -333,6 +333,13 @@ const gchar *rspamd_http_message_get_body (struct rspamd_http_message *msg, 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 -- cgit v1.2.3