diff options
author | Julian Andres Klode <jak@debian.org> | 2017-06-28 19:15:41 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-06-28 19:15:41 +0200 |
commit | 11c3624ce3575076ca52350f66d4bd2e63db5d73 (patch) | |
tree | 5bdd7020c8d42e9bb502fb0bbb4c3dc85450d446 /methods/http.h | |
parent | 930e2df52dc637039c1845905d79ce525faeb8ca (diff) | |
parent | 147ac0fc90d972a11f5e91521ba3d385015b5945 (diff) |
Merge branch 'feature/http-https'
Diffstat (limited to 'methods/http.h')
-rw-r--r-- | methods/http.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/methods/http.h b/methods/http.h index c79a6454e..3336fb780 100644 --- a/methods/http.h +++ b/methods/http.h @@ -13,11 +13,13 @@ #include <apt-pkg/strutl.h> +#include <iostream> +#include <memory> #include <string> #include <sys/time.h> -#include <iostream> #include "basehttp.h" +#include "connect.h" using std::cout; using std::endl; @@ -66,11 +68,11 @@ class CircleBuf unsigned long long TotalWriten; // Read data in - bool Read(int Fd); + bool Read(std::unique_ptr<MethodFd> const &Fd); bool Read(std::string const &Data); // Write data out - bool Write(int Fd); + bool Write(std::unique_ptr<MethodFd> const &Fd); bool WriteTillEl(std::string &Data,bool Single = false); // Control the write limit @@ -95,7 +97,7 @@ struct HttpServerState: public ServerState // This is the connection itself. Output is data FROM the server CircleBuf In; CircleBuf Out; - int ServerFd; + std::unique_ptr<MethodFd> ServerFd; protected: virtual bool ReadHeaderLines(std::string &Data) APT_OVERRIDE; |