]>
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 Aquire Method - This is the HTTP aquire method for APT.
8 ##################################################################### */
17 #include <curl/curl.h>
25 class HttpsMethod
: public pkgAcqMethod
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();