<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="10">序列化器流操作</string>
    <string name="">非平凡算法需要执行的操作不仅限于一次性发送完整消息，该算法需要做更多的事，例如：</string>
    <string name="">* 先发送头部，再发送消息体。</string>
    <string name="">* 逐步发送消息：每个 I/O 周期内执行有限的工作量。</string>
    <string name="">* 使用调用方提供的一系列缓冲区来表示消息体。</string>
    <string name="">这些任务可通过使用序列化器流接口来完成。使用这些接口时，首先从待发送的消息构造相应的序列化器：</string>
    <string name="">序列化器</string>
    <string name="25">名称</string>
    <string name="25">描述</string>
    <string name="">__序列化器__</string>
    <string name="">/// 提供面向缓冲区的 HTTP 消息序列化功能。\ntemplate&lt;\nbool isRequest,\nclass Body,\nclass Fields = fields\n&gt;\nclass serializer;</string>
    <string name="">[link beast.ref.boost__beast__http__request_serializer `request_serializer`]</string>
    <string name="">/// HTTP/1 请求序列化器\ntemplate&lt;\nclass Body,\nclass Fields = fields\n&gt;\nusing request_serializer = serializer&lt;true, Body, Fields&gt;;</string>
    <string name="">[link beast.ref.boost__beast__http__response_serializer `response_serializer`]</string>
    <string name="">/// HTTP/1 响应序列化器\ntemplate&lt;\nclass Body,\nclass Fields = fields\n&gt;\nusing response_serializer = serializer&lt;false, Body, Fields&gt;;</string>
    <string name="">模板类型的选择必须与构造时传入的消息相匹配。以下代码用于创建一个 HTTP 响应及其对应的序列化器：</string>
    <string name="">用于操作序列化器的流操作如下：</string>
    <string name="73">序列化器流操作</string>
    <string name="73">名称</string>
    <string name="73">描述</string>
    <string name="">[link beast.ref.boost__beast__http__write.overload1 [*write]]</string>
    <string name="">将 __serializer__ 中的全部数据发送到 __SyncWriteStream__。</string>
    <string name="">[link beast.ref.boost__beast__http__async_write.overload1 [*async_write]]</string>
    <string name="">将 __serializer__ 中的全部数据异步发送到 __AsyncWriteStream__。</string>
    <string name="">[link beast.ref.boost__beast__http__write_header.overload1 [*write_header]]</string>
    <string name="">仅将 __serializer__ 中的头部发送到 __SyncWriteStream__。</string>
    <string name="">[link beast.ref.boost__beast__http__async_write_header [*async_write_header]]</string>
    <string name="">仅将 __serializer__ 中的头部异步发送到 __AsyncWriteStream__。</string>
    <string name="">[link beast.ref.boost__beast__http__write_some.overload1 [*write_some]]</string>
    <string name="">将 __serializer__ 中的部分数据发送到 __SyncWriteStream__。</string>
    <string name="">[link beast.ref.boost__beast__http__async_write_some [*async_write_some]]</string>
    <string name="">将 __serializer__ 中的部分数据异步发送到 __AsyncWriteStream__。</string>
    <string name="">以下示例演示如何使用序列化器在流上同步发送消息。其效果与直接调用 `write(stream, m)` 相同：</string>
</resources>
