Mercurial > hg > orthanc
diff Core/HttpServer/FilesystemHttpSender.h @ 1525:f9b0169eb6bb
testing
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2015 17:50:38 +0200 |
parents | c388502a066d |
children | b1291df2f780 |
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpSender.h Tue Aug 11 16:09:24 2015 +0200 +++ b/Core/HttpServer/FilesystemHttpSender.h Tue Aug 11 17:50:38 2015 +0200 @@ -46,10 +46,6 @@ uint64_t size_; std::string chunk_; size_t chunkSize_; - CompressionType sourceCompression_; - HttpCompression targetCompression_; - - std::auto_ptr<BufferHttpSender> uncompressed_; void Initialize(const boost::filesystem::path& path); @@ -70,25 +66,25 @@ Initialize(storage.GetPath(uuid)); } - void SetSourceCompression(CompressionType compression) - { - sourceCompression_ = compression; - } - - /** * Implementation of the IHttpStreamAnswer interface. **/ - virtual HttpCompression SetupHttpCompression(bool /*gzipAllowed*/, - bool /*deflateAllowed*/); - - virtual uint64_t GetContentLength(); + virtual uint64_t GetContentLength() + { + return size_; + } virtual bool ReadNextChunk(); - virtual const char* GetChunkContent(); + virtual const char* GetChunkContent() + { + return chunk_.c_str(); + } - virtual size_t GetChunkSize(); + virtual size_t GetChunkSize() + { + return chunkSize_; + } }; }