mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 17:30:53 +08:00
23 lines
416 B
C++
23 lines
416 B
C++
#pragma once
|
|
|
|
struct stop_req_t;
|
|
struct stop_res_t;
|
|
struct stop_res_data_t;
|
|
class http_client;
|
|
|
|
class service_stop
|
|
{
|
|
public:
|
|
service_stop(http_client& client) : client_(client) {}
|
|
~service_stop(void) {}
|
|
|
|
bool run(acl::json& json);
|
|
|
|
private:
|
|
bool handle(const stop_req_t& req, stop_res_t& res);
|
|
bool stop_one(const char* path, stop_res_data_t& data);
|
|
|
|
private:
|
|
http_client& client_;
|
|
};
|