]>
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    ##################################################################### */ 
  17 #include <curl/curl.h> 
  25 class HttpsMethod 
: public pkgAcqMethod
 
  27    // minimum speed in bytes/se that triggers download timeout handling 
  28    static const int DL_MIN_SPEED 
= 10; 
  30    virtual bool Fetch(FetchItem 
*); 
  31    static size_t write_data(void *buffer
, size_t size
, size_t nmemb
, void *userp
); 
  32    static int progress_callback(void *clientp
, double dltotal
, double dlnow
,  
  33                                 double ultotal
, double ulnow
); 
  41    HttpsMethod() : pkgAcqMethod("1.2",Pipeline 
| SendConfig
)  
  44       curl 
= curl_easy_init(); 
  48 #include <apt-pkg/strutl.h>