add http client

This commit is contained in:
xiongziliang
2017-05-05 18:02:54 +08:00
parent 5901ff197d
commit f1a41022cb
10 changed files with 616 additions and 2 deletions

View File

@@ -15,7 +15,6 @@
using namespace std;
using namespace ZL::Network;
using namespace ZL::Network;
namespace ZL {
namespace Http {
@@ -23,7 +22,7 @@ namespace Http {
class HttpSession: public TcpLimitedSession<MAX_TCP_SESSION> {
public:
typedef map<string,string> KeyValue;
typedef StrCaseMap KeyValue;
typedef std::function<void(const string &codeOut,
const KeyValue &headerOut,
const string &contentOut)> HttpResponseInvoker;