| 209 | } |
| 210 | |
| 211 | std::unique_ptr<StreamFilter> |
| 212 | HttpResponse::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 | |
| 224 | int64_t HttpResponse::getContentLength() const |
| 225 | { |