summaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-06 13:41:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-06 13:41:08 +0100
commit654584a9b9510ec44cab149e6e2cd41108776886 (patch)
treecee85150ad82707254a810d4aebb4965981ff5da /src/libutil/http.h
parentf23b70f4d748e25e296c014fbbd2f6b062d451b9 (diff)
downloadrspamd-654584a9b9510ec44cab149e6e2cd41108776886.tar.gz
rspamd-654584a9b9510ec44cab149e6e2cd41108776886.zip
[Minor] Convert milter session to HTTP request
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r--src/libutil/http.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h
index 23d2fa3fa..8da1bf5e0 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -378,7 +378,7 @@ gboolean rspamd_http_message_append_body (struct rspamd_http_message *msg,
const gchar *data, gsize len);
/**
- * Append a header to reply
+ * Append a header to http message
* @param rep
* @param name
* @param value
@@ -387,6 +387,15 @@ void rspamd_http_message_add_header (struct rspamd_http_message *msg,
const gchar *name,
const gchar *value);
+void rspamd_http_message_add_header_len (struct rspamd_http_message *msg,
+ const gchar *name,
+ const gchar *value,
+ gsize len);
+
+void rspamd_http_message_add_header_fstr (struct rspamd_http_message *msg,
+ const gchar *name,
+ rspamd_fstring_t *value);
+
/**
* Search for a specified header in message
* @param msg message