diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-05 15:10:54 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-05 15:10:54 +0100 |
commit | ad7ee29e6187617af43197293b580582d88b320d (patch) | |
tree | 7f0d2fc5176247e233d20a18fdc86d61fbbf494f /src/libutil/http.h | |
parent | 722a9675c2b2f929b14c047eae0b4b8b5213a06c (diff) | |
download | rspamd-ad7ee29e6187617af43197293b580582d88b320d.tar.gz rspamd-ad7ee29e6187617af43197293b580582d88b320d.zip |
Fix various issues in encrypted messages support.
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index 0c1515b47..41e3bb2bd 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -288,6 +288,14 @@ rspamd_http_connection_unref (struct rspamd_http_connection *conn) void rspamd_http_connection_reset (struct rspamd_http_connection *conn); /** + * Extract the current message from a connection to deal with separately + * @param conn + * @return + */ +struct rspamd_http_message * rspamd_http_connection_steal_msg ( + struct rspamd_http_connection *conn); + +/** * Create new HTTP message * @param type request or response * @return new http message @@ -307,21 +315,30 @@ struct rspamd_http_message* rspamd_http_message_from_url (const gchar *url); * @param name * @param value */ -void rspamd_http_message_add_header (struct rspamd_http_message *rep, +void rspamd_http_message_add_header (struct rspamd_http_message *msg, const gchar *name, const gchar *value); /** * Search for a specified header in message - * @param rep message + * @param msg message * @param name name of header */ -const gchar * rspamd_http_message_find_header (struct rspamd_http_message *rep, +const gchar * rspamd_http_message_find_header (struct rspamd_http_message *msg, const gchar *name); /** - * Free HTTP reply - * @param rep + * Remove specific header from a message + * @param msg + * @param name + * @return + */ +gboolean rspamd_http_message_remove_header (struct rspamd_http_message *msg, + const gchar *name); + +/** + * Free HTTP message + * @param msg */ void rspamd_http_message_free (struct rspamd_http_message *msg); |