comparison OrthancFramework/Sources/RestApi/RestApiOutput.cpp @ 4672:d9942d48fea7

ZipWriter::CancelStream(), ZipWriter::GetArchiveSize() and HttpOutput::AnswerWithoutBuffering()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Jun 2021 17:35:39 +0200
parents d9473bd5ed43
children 0a38000b086d
comparison
equal deleted inserted replaced
4671:42e1f5bde40b 4672:d9942d48fea7
74 CheckStatus(); 74 CheckStatus();
75 output_.Answer(stream); 75 output_.Answer(stream);
76 alreadySent_ = true; 76 alreadySent_ = true;
77 } 77 }
78 78
79
80 void RestApiOutput::AnswerWithoutBuffering(IHttpStreamAnswer& stream)
81 {
82 CheckStatus();
83 output_.AnswerWithoutBuffering(stream);
84 alreadySent_ = true;
85 }
86
87
79 void RestApiOutput::AnswerJson(const Json::Value& value) 88 void RestApiOutput::AnswerJson(const Json::Value& value)
80 { 89 {
81 CheckStatus(); 90 CheckStatus();
82 91
83 if (convertJsonToXml_) 92 if (convertJsonToXml_)