| 94 | } |
| 95 | |
| 96 | inline void AppendAsChunk(butil::IOBuf* chunk_buf, const butil::IOBuf& data, |
| 97 | bool before_http_1_1) { |
| 98 | if (!before_http_1_1) { |
| 99 | AppendChunkHead(chunk_buf, data.size()); |
| 100 | chunk_buf->append(data); |
| 101 | chunk_buf->append("\r\n", 2); |
| 102 | } else { |
| 103 | chunk_buf->append(data); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | inline void AppendAsChunk(butil::IOBuf* chunk_buf, const void* data, |
| 108 | size_t length, bool before_http_1_1) { |
no test coverage detected