]>
git.saurik.com Git - apt.git/blob - methods/https.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/// $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
3 // $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
4 /* ######################################################################
6 HTTP Acquire Method - This is the HTTP aquire method for APT.
8 ##################################################################### */
15 #include <curl/curl.h>
23 class HttpsMethod
: public pkgAcqMethod
25 // minimum speed in bytes/se that triggers download timeout handling
26 static const int DL_MIN_SPEED
= 10;
28 virtual bool Fetch(FetchItem
*);
29 static size_t write_data(void *buffer
, size_t size
, size_t nmemb
, void *userp
);
30 static int progress_callback(void *clientp
, double dltotal
, double dlnow
,
31 double ultotal
, double ulnow
);
39 HttpsMethod() : pkgAcqMethod("1.2",Pipeline
| SendConfig
)
42 curl
= curl_easy_init();
47 curl_easy_cleanup(curl
);
51 #include <apt-pkg/strutl.h>