Mercurial > hg > orthanc
comparison Core/HttpServer/HttpOutput.h @ 43:9be852ad33d2
rename for c
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Sep 2012 09:59:34 +0200 |
parents | 3a584803783e |
children | a15e90e5d6fc |
comparison
equal
deleted
inserted
replaced
42:ea48f38afe5f | 43:9be852ad33d2 |
---|---|
28 namespace Palantir | 28 namespace Palantir |
29 { | 29 { |
30 class HttpOutput | 30 class HttpOutput |
31 { | 31 { |
32 private: | 32 private: |
33 void SendHeaderInternal(HttpStatus status); | 33 void SendHeaderInternal(Palantir_HttpStatus status); |
34 | 34 |
35 void SendOkHeader(const char* contentType, | 35 void SendOkHeader(const char* contentType, |
36 bool hasContentLength, | 36 bool hasContentLength, |
37 uint64_t contentLength); | 37 uint64_t contentLength); |
38 | 38 |
54 void SendOkHeader(const std::string& contentType, | 54 void SendOkHeader(const std::string& contentType, |
55 uint64_t contentLength); | 55 uint64_t contentLength); |
56 | 56 |
57 void SendMethodNotAllowedError(const std::string& allowed); | 57 void SendMethodNotAllowedError(const std::string& allowed); |
58 | 58 |
59 void SendHeader(HttpStatus status); | 59 void SendHeader(Palantir_HttpStatus status); |
60 | 60 |
61 | 61 |
62 // Higher-level constructs to send entire files or buffers ------------------- | 62 // Higher-level constructs to send entire files or buffers ------------------- |
63 | 63 |
64 void AnswerBuffer(const std::string& buffer) | 64 void AnswerBuffer(const std::string& buffer) |