MCPcopy Create free account
hub / github.com/acl-dev/acl / write_chunk_trailer

Method write_chunk_trailer

lib_acl_cpp/src/http/http_client.cpp:197–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197bool 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
209bool http_client::write_gzip(ostream& out, const void* data, size_t len)
210{

Callers 1

transfer_responseMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected