MCPcopy Create free account
hub / github.com/aria2/aria2 / testIsTransferEncodingSpecified

Method testIsTransferEncodingSpecified

test/HttpResponseTest.cc:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void HttpResponseTest::testIsTransferEncodingSpecified()
260{
261 HttpResponse httpResponse;
262
263 httpResponse.setHttpHeader(make_unique<HttpHeader>());
264 CPPUNIT_ASSERT(!httpResponse.isTransferEncodingSpecified());
265
266 httpResponse.getHttpHeader()->put(HttpHeader::TRANSFER_ENCODING, "chunked");
267 CPPUNIT_ASSERT(httpResponse.isTransferEncodingSpecified());
268}
269
270void HttpResponseTest::testGetTransferEncoding()
271{

Callers

nothing calls this directly

Calls 3

setHttpHeaderMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected