geopro/src/net/ApiResponseParse.hpp

13 lines
404 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "ApiClient.hpp" // for geopro::net::ApiResponse
class QNetworkReply;
namespace geopro::net {
// 从一个【已完成】的 reply 读取状态码/响应体/错误并解析为 ApiResponse。
// 不等待、不删除 reply调用方负责生命周期。供同步 await 与异步 ApiCall 共用。
ApiResponse buildResponse(QNetworkReply* reply);
} // namespace geopro::net