]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Make http_client_request_error() public
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sun, 30 Jul 2023 15:32:13 +0000 (18:32 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/lib-http/http-client-private.h
src/lib-http/http-client.h

index efc9c377fb4475fa69a59a5f5cb409d846f5e36f..391dd532be5a12f27ff6094efdf4f195f81026d4 100644 (file)
@@ -510,8 +510,6 @@ void http_client_request_resubmit(struct http_client_request *req);
 void http_client_request_retry(struct http_client_request *req,
                               unsigned int status, const char *error);
 void http_client_request_error_delayed(struct http_client_request **_req);
-void http_client_request_error(struct http_client_request **req,
-                              unsigned int status, const char *error);
 void http_client_request_redirect(struct http_client_request *req,
                                  unsigned int status, const char *location);
 void http_client_request_finish(struct http_client_request *req);
index f3482968d3bf31fe5f057aa39183370c05c420f8..976eda68d38e30f567d5cede84ffbe1df325655c 100644 (file)
@@ -445,6 +445,10 @@ void http_client_request_submit(struct http_client_request *req);
    callback. It returns false if the request cannot be retried */
 bool http_client_request_try_retry(struct http_client_request *req);
 
+/* Fail the request. This can also be used instead of submitting the request to
+   cause the request callback to be called later on with the spcified error. */
+void http_client_request_error(struct http_client_request **req,
+                              unsigned int status, const char *error);
 /* Abort the request immediately. It may still linger for a while when it is
    already sent to the service, but the callback will not be called anymore. */
 void http_client_request_abort(struct http_client_request **req);