diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-20 14:11:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-20 14:11:58 +0100 |
commit | 5ac509220ed1874a7dd2fe244d1b8e6f39febf06 (patch) | |
tree | f0e7dc53c767bcfc507f9038b4a77b30aad7c9bb /src/libutil/http.h | |
parent | 8114d4956eb1f862f9eead17ade6838edba1a2bf (diff) | |
download | rspamd-5ac509220ed1874a7dd2fe244d1b8e6f39febf06.tar.gz rspamd-5ac509220ed1874a7dd2fe244d1b8e6f39febf06.zip |
Add HTTP_CLIENT_SIMPLE option.
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index c6a142e3b..eefadee18 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -67,7 +67,8 @@ struct rspamd_http_message { * Options for HTTP connection */ enum rspamd_http_options { - RSPAMD_HTTP_BODY_PARTIAL = 0x1 //!< RSPAMD_HTTP_BODY_PARTIAL + RSPAMD_HTTP_BODY_PARTIAL = 0x1, /**< Call body handler on all body data portions */ + RSPAMD_HTTP_CLIENT_SIMPLE = 0x2 /**< Read HTTP client reply automatically */ }; struct rspamd_http_connection_private; @@ -104,7 +105,7 @@ struct rspamd_http_connection { rspamd_http_error_handler_t error_handler; rspamd_http_finish_handler_t finish_handler; gpointer ud; - enum rspamd_http_options opts; + unsigned opts; enum rspamd_http_connection_type type; gboolean finished; gint fd; @@ -140,7 +141,7 @@ struct rspamd_http_connection * rspamd_http_connection_new ( rspamd_http_body_handler_t body_handler, rspamd_http_error_handler_t error_handler, rspamd_http_finish_handler_t finish_handler, - enum rspamd_http_options opts, + unsigned opts, enum rspamd_http_connection_type type); /** |