summaryrefslogtreecommitdiffstats
path: root/src/libutil/http_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-15 18:23:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-15 18:23:40 +0000
commita841d419c9d230681a46900cac8629b576b2dfe8 (patch)
tree8cae473e4193d7dafd49ed8aa50c7e4612038489 /src/libutil/http_private.h
parent541b15df290f0aa40b71a85379f3faa909de30b6 (diff)
downloadrspamd-a841d419c9d230681a46900cac8629b576b2dfe8.tar.gz
rspamd-a841d419c9d230681a46900cac8629b576b2dfe8.zip
[Rework] Finish http code split and cleanup
Diffstat (limited to 'src/libutil/http_private.h')
-rw-r--r--src/libutil/http_private.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libutil/http_private.h b/src/libutil/http_private.h
index 970956741..df1233d8b 100644
--- a/src/libutil/http_private.h
+++ b/src/libutil/http_private.h
@@ -17,6 +17,7 @@
#define SRC_LIBUTIL_HTTP_PRIVATE_H_
#include "http_connection.h"
+#include "http_parser.h"
#include "str_util.h"
#include "ref.h"
#define HASH_CASELESS
@@ -66,12 +67,18 @@ struct rspamd_http_message {
time_t date;
time_t last_modified;
unsigned port;
- enum http_parser_type type;
+ int type;
gint code;
enum http_method method;
gint flags;
ref_entry_t ref;
};
+#define HTTP_ERROR http_error_quark ()
+GQuark http_error_quark (void);
+
+void rspamd_http_message_storage_cleanup (struct rspamd_http_message *msg);
+gboolean rspamd_http_message_grow_body (struct rspamd_http_message *msg,
+ gsize len);
#endif /* SRC_LIBUTIL_HTTP_PRIVATE_H_ */