Mercurial > hg > orthanc
diff Core/HttpServer/HttpOutput.cpp @ 207:7f74209ea0f8
RestApi
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Nov 2012 16:23:11 +0100 |
parents | 93e1b0e3b83a |
children | 1ac3aacd10a5 |
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.cpp Wed Nov 28 12:03:18 2012 +0100 +++ b/Core/HttpServer/HttpOutput.cpp Wed Nov 28 16:23:11 2012 +0100 @@ -80,6 +80,13 @@ } + void HttpOutput::SendCustomOkHeader(const std::string& customHeader) + { + std::string s = "HTTP/1.1 200 OK\r\n" + customHeader + "\r\n"; + Send(&s[0], s.size()); + } + + void HttpOutput::SendMethodNotAllowedError(const std::string& allowed) { std::string s =