]> git.ipfire.org Git - thirdparty/git.git/commit - http.h
http.c: new functions for the http API
authorMike Hommey <mh@glandium.org>
Sat, 6 Jun 2009 08:43:53 +0000 (16:43 +0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Jun 2009 17:56:27 +0000 (10:56 -0700)
commite929cd20bb3557833765f95fe0e9143a47f806e7
treedd136a97f02f20db4402173cbd270f8ac04fd830
parent5ace994f3384726fa993de526fc059d1343a6463
http.c: new functions for the http API

The new functions added are:
 - http_request() (internal function)
 - http_get_strbuf()
 - http_get_file()
 - http_error()

http_get_strbuf and http_get_file allow respectively to retrieve contents of
an URL to a strbuf or an opened file handle.

http_error prints out an error message containing the URL and the curl error
(in curl_errorstr).

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
http.h