Mercurial > hg > orthanc
comparison OrthancFramework/Sources/HttpServer/HttpStreamTranscoder.h @ 4298:db3932f9660d
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 18:21:03 +0100 |
parents | 2d5209153b32 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4297:785a2713323e | 4298:db3932f9660d |
---|---|
46 | 46 |
47 HttpCompression SetupZlibCompression(bool deflateAllowed); | 47 HttpCompression SetupZlibCompression(bool deflateAllowed); |
48 | 48 |
49 public: | 49 public: |
50 HttpStreamTranscoder(IHttpStreamAnswer& source, | 50 HttpStreamTranscoder(IHttpStreamAnswer& source, |
51 CompressionType compression) : | 51 CompressionType compression); |
52 source_(source), | |
53 sourceCompression_(compression), | |
54 bytesToSkip_(0), | |
55 skipped_(0), | |
56 currentChunkOffset_(0), | |
57 ready_(false) | |
58 { | |
59 } | |
60 | 52 |
61 // This is the first method to be called | 53 // This is the first method to be called |
62 virtual HttpCompression SetupHttpCompression(bool gzipAllowed, | 54 virtual HttpCompression SetupHttpCompression(bool gzipAllowed, |
63 bool deflateAllowed) ORTHANC_OVERRIDE; | 55 bool deflateAllowed) ORTHANC_OVERRIDE; |
64 | 56 |
65 virtual bool HasContentFilename(std::string& filename) ORTHANC_OVERRIDE | 57 virtual bool HasContentFilename(std::string& filename) ORTHANC_OVERRIDE; |
66 { | |
67 return source_.HasContentFilename(filename); | |
68 } | |
69 | 58 |
70 virtual std::string GetContentType() ORTHANC_OVERRIDE | 59 virtual std::string GetContentType() ORTHANC_OVERRIDE; |
71 { | |
72 return source_.GetContentType(); | |
73 } | |
74 | 60 |
75 virtual uint64_t GetContentLength() ORTHANC_OVERRIDE; | 61 virtual uint64_t GetContentLength() ORTHANC_OVERRIDE; |
76 | 62 |
77 virtual bool ReadNextChunk() ORTHANC_OVERRIDE; | 63 virtual bool ReadNextChunk() ORTHANC_OVERRIDE; |
78 | 64 |