| 195 | } |
| 196 | |
| 197 | bool http_client::write_chunk_trailer(ostream& out) |
| 198 | { |
| 199 | static const char trailer[] = "0\r\n\r\n"; |
| 200 | |
| 201 | if (out.write(trailer, sizeof(trailer) - 1) == -1) { |
| 202 | disconnected_ = true; |
| 203 | return false; |
| 204 | } else { |
| 205 | return true; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | bool http_client::write_gzip(ostream& out, const void* data, size_t len) |
| 210 | { |
no test coverage detected