diff options
Diffstat (limited to 'src/libutil/http_connection.h')
-rw-r--r-- | src/libutil/http_connection.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/libutil/http_connection.h b/src/libutil/http_connection.h index 5fadf4509..87159bdd0 100644 --- a/src/libutil/http_connection.h +++ b/src/libutil/http_connection.h @@ -29,6 +29,7 @@ #include "ref.h" #include "http_message.h" #include "http_util.h" +#include "addr.h" #include <event.h> @@ -74,10 +75,6 @@ struct rspamd_storage_shmem { */ #define RSPAMD_HTTP_FLAG_SSL_NOVERIFY (1 << 6) /** - * Do not verify server's certificate - */ -#define RSPAMD_HTTP_FLAG_KEEPALIVE (1 << 7) -/** * Options for HTTP connection */ enum rspamd_http_options { @@ -132,6 +129,14 @@ struct rspamd_http_connection *rspamd_http_connection_new ( unsigned opts, enum rspamd_http_connection_type type); +struct rspamd_http_connection *rspamd_http_connection_new_keepalive ( + struct rspamd_http_context *ctx, + rspamd_http_body_handler_t body_handler, + rspamd_http_error_handler_t error_handler, + rspamd_http_finish_handler_t finish_handler, + rspamd_inet_addr_t *addr, + const gchar *host); + /** * Set key pointed by an opaque pointer |