summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.h
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2008-12-15 08:27:44 +0000
committermurray <murray@FreeBSD.org>2008-12-15 08:27:44 +0000
commit72a890ccd7d1c4fd04c561303e0ad5e45a6a4aaa (patch)
tree9ece849067a9d612c3bf00d2dd2a07b33b383a74 /lib/libfetch/fetch.h
parent3475c71ce83c2101fd0d42512193048affde82cc (diff)
downloadFreeBSD-src-72a890ccd7d1c4fd04c561303e0ad5e45a6a4aaa.zip
FreeBSD-src-72a890ccd7d1c4fd04c561303e0ad5e45a6a4aaa.tar.gz
Add support for HTTP 1.1 If-Modified-Since behavior.
fetch(1) accepts a new argument -i <file> that if specified will cause the file to be downloaded only if it is more recent than the mtime of <file>. libfetch(3) accepts the mtime in the url structure and a flag to indicate when this behavior is desired. PR: bin/87841 Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially) Reviewed by: des, ru MFC after: 3 weeks
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r--lib/libfetch/fetch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h
index 10d911a..e620a01 100644
--- a/lib/libfetch/fetch.h
+++ b/lib/libfetch/fetch.h
@@ -46,6 +46,7 @@ struct url {
char *doc;
off_t offset;
size_t length;
+ time_t ims_time;
};
struct url_stat {
OpenPOWER on IntegriCloud