diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-05-02 12:28:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-05-02 12:28:43 +0100 |
commit | de4532aba29f10943776f85ae625633eb8c8406f (patch) | |
tree | 701d001653ae5ff56164c713a98d4d25c1813cce /src/libserver/protocol.h | |
parent | e6ddee95a731f41a9cca17fe5082bfcda9623924 (diff) | |
download | rspamd-de4532aba29f10943776f85ae625633eb8c8406f.tar.gz rspamd-de4532aba29f10943776f85ae625633eb8c8406f.zip |
Handle HTTP headers during task processing.
Diffstat (limited to 'src/libserver/protocol.h')
-rw-r--r-- | src/libserver/protocol.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/libserver/protocol.h b/src/libserver/protocol.h index b3643ac7a..aed45752c 100644 --- a/src/libserver/protocol.h +++ b/src/libserver/protocol.h @@ -21,19 +21,30 @@ struct metric; /** + * Process headers into HTTP message and set appropriate task fields + * @param task + * @param msg + * @return + */ +gboolean rspamd_protocol_handle_headers (struct rspamd_task *task, + struct rspamd_http_message *msg); + +/** * Process HTTP request to the task structure * @param task * @param msg * @return */ -gboolean rspamd_protocol_handle_request (struct rspamd_task *task, struct rspamd_http_message *msg); +gboolean rspamd_protocol_handle_request (struct rspamd_task *task, + struct rspamd_http_message *msg); /** * Write task results to http message * @param msg * @param task */ -void rspamd_protocol_http_reply (struct rspamd_http_message *msg, struct rspamd_task *task); +void rspamd_protocol_http_reply (struct rspamd_http_message *msg, + struct rspamd_task *task); /** * Write reply for specified task command |