summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-08-27 13:26:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-08-27 17:49:09 (GMT)
commit88097030725bf68d1801559cfb4785b93a50f5f8 (patch)
treefe19d92b0bff8efd61a6ae98b67025ab7814dd35 /http.h
parent4c71009da60baee436358e84ff1057cd1c80e776 (diff)
downloadgit-88097030725bf68d1801559cfb4785b93a50f5f8.zip
git-88097030725bf68d1801559cfb4785b93a50f5f8.tar.gz
git-88097030725bf68d1801559cfb4785b93a50f5f8.tar.bz2
http: factor out http error code handling
Most of our http requests go through the http_request() interface, which does some nice post-processing on the results. In particular, it handles prompting for missing credentials as well as approving and rejecting valid or invalid credentials. Unfortunately, it only handles GET requests. Making it handle POSTs would be quite complex, so let's pull result handling code into its own function so that it can be reused from the POST code paths. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.h')
-rw-r--r--http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.h b/http.h
index 915c286..12de255 100644
--- a/http.h
+++ b/http.h
@@ -78,6 +78,7 @@ extern int start_active_slot(struct active_request_slot *slot);
extern void run_active_slot(struct active_request_slot *slot);
extern void finish_active_slot(struct active_request_slot *slot);
extern void finish_all_active_slots(void);
+extern int handle_curl_result(struct active_request_slot *slot);
#ifdef USE_CURL_MULTI
extern void fill_active_slots(void);