|
🛰️航天仿真算法库 SpaceAST 0.3.1
|
#include "AstGlobal.h"#include "NetworkResponse.hpp"#include "AstUtil/Logger.hpp"#include <map>#include <string>#include <functional>#include <cstdint>类 | |
| class | ast::NetworkStreamReceiver |
| class | ast::CollectingStreamReceiver |
| class | ast::FileDownloadReceiver |
命名空间 | |
| namespace | ast |
类型定义 | |
| using | ast::DownloadProgressCallback = std::function<bool(uint64_t downloaded, uint64_t total)> |
流式数据接收器 — 纯虚接口
NetworkInterface::requestStream() 通过此接口逐块回调响应体数据。 用于实现 SSE (Server-Sent Events) 等流式 HTTP 响应场景。
SpaceAST项目(https://github.com/space-ast/ast) 本软件基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:
http://www.apache.org/licenses/LICENSE-2.0
重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。