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

Method getContentEncodingStreamFilter

src/HttpResponse.cc:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211std::unique_ptr<StreamFilter>
212HttpResponse::getContentEncodingStreamFilter() const
213{
214#ifdef HAVE_ZLIB
215 if (util::strieq(getContentEncoding(), "gzip") ||
216 util::strieq(getContentEncoding(), "deflate")) {
217 return make_unique<GZipDecodingStreamFilter>();
218 }
219#endif // HAVE_ZLIB
220
221 return nullptr;
222}
223
224int64_t HttpResponse::getContentLength() const
225{

Calls 1

strieqFunction · 0.70

Tested by 1