Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpServer/HttpStreamTranscoder.cpp @ 4298:db3932f9660d
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 18:21:03 +0100 |
parents | bf7b9edf6b81 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpStreamTranscoder.cpp Thu Nov 05 17:20:49 2020 +0100 +++ b/OrthancFramework/Sources/HttpServer/HttpStreamTranscoder.cpp Thu Nov 05 18:21:03 2020 +0100 @@ -98,6 +98,16 @@ } } + HttpStreamTranscoder::HttpStreamTranscoder(IHttpStreamAnswer &source, CompressionType compression) : + source_(source), + sourceCompression_(compression), + bytesToSkip_(0), + skipped_(0), + currentChunkOffset_(0), + ready_(false) + { + } + HttpCompression HttpStreamTranscoder::SetupHttpCompression(bool gzipAllowed, bool deflateAllowed) @@ -122,6 +132,16 @@ } } + bool HttpStreamTranscoder::HasContentFilename(std::string &filename) + { + return source_.HasContentFilename(filename); + } + + std::string HttpStreamTranscoder::GetContentType() + { + return source_.GetContentType(); + } + uint64_t HttpStreamTranscoder::GetContentLength() {