summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.h
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-07-20 00:29:41 +0000
committerbapt <bapt@FreeBSD.org>2014-07-20 00:29:41 +0000
commit63350d40ce15303c5d0420d475b65e1888cd3ff3 (patch)
treeb27151a0dd7c66f04a54b13385b1de9e3e6dcc61 /lib/libfetch/common.h
parent73fb3c280598036462af67b72879afe5bb731dc1 (diff)
downloadFreeBSD-src-63350d40ce15303c5d0420d475b65e1888cd3ff3.zip
FreeBSD-src-63350d40ce15303c5d0420d475b65e1888cd3ff3.tar.gz
MFC: r267131, r267132, r267133, r268493, r268671
Use NULL instead of 0 (Patch by Sascha Wildner <saw at online.de> for Dragonfly) Remove unnecessary semicolons (Patch by Sascha Wildner <saw at online.de> for Dragonfly) Add support for arbitrary http requests [1] Support EAGAIN in fetch_writev Submitted by: Alex Hornung <alex at alexhornung.com> [1] Reviewed by: des
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r--lib/libfetch/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h
index 875eef1..41c10d2 100644
--- a/lib/libfetch/common.h
+++ b/lib/libfetch/common.h
@@ -117,6 +117,9 @@ int fetch_no_proxy_match(const char *);
*/
FILE *http_request(struct url *, const char *,
struct url_stat *, struct url *, const char *);
+FILE *http_request_body(struct url *, const char *,
+ struct url_stat *, struct url *, const char *,
+ const char *, const char *);
FILE *ftp_request(struct url *, const char *,
struct url_stat *, struct url *, const char *);
OpenPOWER on IntegriCloud