Mercurial > hg > orthanc
comparison Core/RestApi/RestApiOutput.h @ 216:e5d5d4a9a326
refactored upload of dicom through http
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Nov 2012 11:57:35 +0100 |
parents | c07170f3f4f7 |
children | 4031f73fe0e4 |
comparison
equal
deleted
inserted
replaced
215:c07170f3f4f7 | 216:e5d5d4a9a326 |
---|---|
41 { | 41 { |
42 class RestApiOutput | 42 class RestApiOutput |
43 { | 43 { |
44 private: | 44 private: |
45 HttpOutput& output_; | 45 HttpOutput& output_; |
46 bool existingResource_; | 46 bool alreadySent_; |
47 | 47 |
48 void CheckStatus(); | 48 void CheckStatus(); |
49 | 49 |
50 public: | 50 public: |
51 RestApiOutput(HttpOutput& output); | 51 RestApiOutput(HttpOutput& output); |
57 void AnswerJson(const Json::Value& value); | 57 void AnswerJson(const Json::Value& value); |
58 | 58 |
59 void AnswerBuffer(const std::string& buffer, | 59 void AnswerBuffer(const std::string& buffer, |
60 const std::string& contentType); | 60 const std::string& contentType); |
61 | 61 |
62 void SignalError(Orthanc_HttpStatus status); | |
63 | |
62 void Redirect(const std::string& path); | 64 void Redirect(const std::string& path); |
63 }; | 65 }; |
64 } | 66 } |