summaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-08 17:15:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-08 17:15:07 +0100
commit4723fc02beba74b68563d99ae16ef91409f18ca0 (patch)
tree7e42e680c54a9927bc55973e56bbae1cafcb1209 /src/libutil/http.h
parent40668e02907b0e15b9fdfe429a48b20ac98b1e31 (diff)
downloadrspamd-4723fc02beba74b68563d99ae16ef91409f18ca0.tar.gz
rspamd-4723fc02beba74b68563d99ae16ef91409f18ca0.zip
[Minor] Add method to get HTTP message flags
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 8da1bf5e0..51d5098d8 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -449,6 +449,13 @@ struct rspamd_storage_shmem* rspamd_http_message_shmem_ref (struct rspamd_http_m
void rspamd_http_message_shmem_unref (struct rspamd_storage_shmem *p);
/**
+ * Returns message's flags
+ * @param msg
+ * @return
+ */
+guint rspamd_http_message_get_flags (struct rspamd_http_message *msg);
+
+/**
* Parse HTTP date header and return it as time_t
* @param header HTTP date header
* @param len length of header