Mercurial > hg > orthanc
diff Core/RestApi/RestApiOutput.cpp @ 339:639272ef7615
answer raw buffers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Jan 2013 15:14:54 +0100 |
parents | 78a8eaa5f30b |
children | bdd72233b105 |
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.cpp Mon Jan 14 11:35:01 2013 +0100 +++ b/Core/RestApi/RestApiOutput.cpp Wed Jan 16 15:14:54 2013 +0100 @@ -84,6 +84,15 @@ alreadySent_ = true; } + void RestApiOutput::AnswerBuffer(const void* buffer, + size_t length, + const std::string& contentType) + { + CheckStatus(); + output_.AnswerBufferWithContentType(buffer, length, contentType, cookies_); + alreadySent_ = true; + } + void RestApiOutput::Redirect(const std::string& path) { CheckStatus();