Files
ylib/include/ynet/http_agent.h
2024-03-31 21:45:09 +08:00

30 lines
648 B
C++

#pragma once
#include "http_define.h"
#include "yutil/cache.h"
#if USE_NET_HTTP_WEBSITE
class http_agent_listener;
class http_agent_extra;
namespace ylib::network::http
{
class reqpack;
class server;
class agent:public ylib::error_base
{
public:
agent();
~agent();
bool start();
void stop();
void disconnect(bool ssl,uint64 connid);
bool request(int32 wait_msec, reqpack* rp, network::http::proxy* proxy);
private:
void* get();
private:
void* m_agent_ssl;
void* m_agent;
http_agent_listener* m_listener;
bool m_ssl;
};
}
#endif