Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The next code sample emits a chunked response which promises two trailer fields and delivers them in the last chunk. The implementation allocates memory using the default or a passed-in allocator to hold the state information required to serialize the trailer:以下代码示例发送一个分块响应,该响应承诺携带两个尾部字段,并在最后分块中发送这些字段。实现会使用默认分配器或传入的分配器分配内存,用于保存序列化尾部所需的状态信息: