comparison 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
comparison
equal deleted inserted replaced
338:3a3b3ba8c1e0 339:639272ef7615
82 CheckStatus(); 82 CheckStatus();
83 output_.AnswerBufferWithContentType(buffer, contentType, cookies_); 83 output_.AnswerBufferWithContentType(buffer, contentType, cookies_);
84 alreadySent_ = true; 84 alreadySent_ = true;
85 } 85 }
86 86
87 void RestApiOutput::AnswerBuffer(const void* buffer,
88 size_t length,
89 const std::string& contentType)
90 {
91 CheckStatus();
92 output_.AnswerBufferWithContentType(buffer, length, contentType, cookies_);
93 alreadySent_ = true;
94 }
95
87 void RestApiOutput::Redirect(const std::string& path) 96 void RestApiOutput::Redirect(const std::string& path)
88 { 97 {
89 CheckStatus(); 98 CheckStatus();
90 output_.Redirect(path); 99 output_.Redirect(path);
91 alreadySent_ = true; 100 alreadySent_ = true;