blob: d0a7c8c31af4e70459f8f5fe11165e2357e56555 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/* ######################################################################
HTTP method - Transfer files via rsh compatible program
##################################################################### */
/*}}}*/
#ifndef APT_NSHTTP_H
#define APT_NSHTTP_H
#include <string>
#include <time.h>
#include <apt-pkg/strutl.h>
#include <Foundation/Foundation.h>
class Hashes;
class FileFd;
#include "aptmethod.h"
class HttpMethod : public aptMethod
{
virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE;
virtual bool Configuration(std::string Message) APT_OVERRIDE;
NSURLSession *session;
static std::string FailFile;
static int FailFd;
static time_t FailTime;
static APT_NORETURN void SigTerm(int);
public:
explicit HttpMethod(std::string &&Prog);
};
#endif
|