Mercurial > hg > orthanc
diff Core/RestApi/RestApiOutput.h @ 1519:8bd0d897763f
refactoring: IHttpStreamAnswer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2015 13:15:16 +0200 |
parents | eb46cc06389a |
children | 9c5d93510414 |
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.h Tue Aug 11 10:36:05 2015 +0200 +++ b/Core/RestApi/RestApiOutput.h Tue Aug 11 13:15:16 2015 +0200 @@ -55,16 +55,6 @@ ~RestApiOutput(); - HttpOutput& GetLowLevelOutput() - { - return output_; - } - - void MarkLowLevelOutputDone() - { - alreadySent_ = true; - } - void SetConvertJsonToXml(bool convert) { convertJsonToXml_ = convert; @@ -75,7 +65,7 @@ return convertJsonToXml_; } - void AnswerFile(HttpFileSender& sender); + void AnswerStream(IHttpStreamAnswer& stream); void AnswerJson(const Json::Value& value);