summaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-06 16:50:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-06 16:50:52 +0100
commitd81034d28436deb41b750f7daaefc39e4fe66e6b (patch)
tree24bf937502a1a5aca89efba27b0f90a25340813d /src/libutil/http.h
parent8cbcc5d357fe85895dc3311f0484bbba782f026f (diff)
downloadrspamd-d81034d28436deb41b750f7daaefc39e4fe66e6b.tar.gz
rspamd-d81034d28436deb41b750f7daaefc39e4fe66e6b.zip
[Feature] Add method to copy message from http connection
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r--src/libutil/http.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h
index 36158586d..9793e577b 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -247,6 +247,14 @@ struct rspamd_http_message * rspamd_http_connection_steal_msg (
struct rspamd_http_connection *conn);
/**
+ * Copy the current message from a connection to deal with separately
+ * @param conn
+ * @return
+ */
+struct rspamd_http_message * rspamd_http_connection_copy_msg (
+ struct rspamd_http_connection *conn);
+
+/**
* Create new HTTP message
* @param type request or response
* @return new http message