comparison Core/HttpServer/HttpOutput.h @ 207:7f74209ea0f8

RestApi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 16:23:11 +0100
parents 93e1b0e3b83a
children 1ac3aacd10a5
comparison
equal deleted inserted replaced
206:4453a010d0db 207:7f74209ea0f8
42 class HttpOutput 42 class HttpOutput
43 { 43 {
44 private: 44 private:
45 void SendHeaderInternal(Orthanc_HttpStatus status); 45 void SendHeaderInternal(Orthanc_HttpStatus status);
46 46
47 void SendOkHeader(const char* contentType,
48 bool hasContentLength,
49 uint64_t contentLength,
50 const char* contentFilename);
51
52 public: 47 public:
53 virtual ~HttpOutput() 48 virtual ~HttpOutput()
54 { 49 {
55 } 50 }
56 51
57 virtual void Send(const void* buffer, size_t length) = 0; 52 virtual void Send(const void* buffer, size_t length) = 0;
58 53
59 void SendOkHeader(const std::string& contentType); 54 void SendOkHeader(const std::string& contentType);
55
56 void SendOkHeader(const char* contentType,
57 bool hasContentLength,
58 uint64_t contentLength,
59 const char* contentFilename);
60
61 void SendCustomOkHeader(const std::string& customHeader);
60 62
61 void SendString(const std::string& s); 63 void SendString(const std::string& s);
62 64
63 void SendMethodNotAllowedError(const std::string& allowed); 65 void SendMethodNotAllowedError(const std::string& allowed);
64 66