我想使用 boost::http 的 response_parser 解析我自己的数据。我找到的所有文档都与 http::request of boost 相关联。我已经编写了自己的 SSLLink 来获取数据。我想将数据增量地提供给 response_parser 并检查是否已解析完整的消息。
我发现这个答案有些相关: Parse Response。但它不提供增量提供数据的方法。
我想使用 boost::http 的 response_parser 解析我自己的数据。我找到的所有文档都与 http::request of boost 相关联。我已经编写了自己的 SSLLink 来获取数据。我想将数据增量地提供给 response_parser 并检查是否已解析完整的消息。
我发现这个答案有些相关: Parse Response。但它不提供增量提供数据的方法。
这在文档中得到了充分解释:https ://www.boost.org/doc/libs/1_67_0/libs/beast/doc/html/beast/using_http/buffer_orient_parsing.html