HttpClientImp.h 867 Bytes
Newer Older
xiongziliang committed
1
/*
xiongziliang committed
2
 * Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
xiongziliang committed
3
 *
4
 * This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
xiongziliang committed
5
 *
xiongziliang committed
6 7 8
 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
xiongziliang committed
9 10 11 12 13 14 15
 */

#ifndef SRC_HTTP_HTTPCLIENTIMP_H_
#define SRC_HTTP_HTTPCLIENTIMP_H_

#include "HttpClient.h"
#include "Util/SSLBox.h"
xiongziliang committed
16 17
using namespace toolkit;
namespace mediakit {
xiongziliang committed
18

xiongziliang committed
19
class HttpClientImp: public TcpClientWithSSL<HttpClient> {
xiongziliang committed
20
public:
21 22 23
    typedef std::shared_ptr<HttpClientImp> Ptr;
    HttpClientImp() {}
    virtual ~HttpClientImp() {}
xiongziliang committed
24
protected:
25
    void onConnect(const SockException &ex)  override ;
xiongziliang committed
26 27
};

xiongziliang committed
28
} /* namespace mediakit */
xiongziliang committed
29
#endif /* SRC_HTTP_HTTPCLIENTIMP_H_ */