comparison Core/HttpServer/HttpOutput.h @ 285:4031f73fe0e4

access to the raw dicom tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Dec 2012 17:53:14 +0100
parents 1ac3aacd10a5
children 64925c94825c
comparison
equal deleted inserted replaced
284:06aa7b7b6723 285:4031f73fe0e4
41 class HttpOutput 41 class HttpOutput
42 { 42 {
43 private: 43 private:
44 void SendHeaderInternal(Orthanc_HttpStatus status); 44 void SendHeaderInternal(Orthanc_HttpStatus status);
45 45
46 void SendOkHeader(const char* contentType,
47 bool hasContentLength,
48 uint64_t contentLength,
49 const char* contentFilename);
50
51 public: 46 public:
52 virtual ~HttpOutput() 47 virtual ~HttpOutput()
53 { 48 {
54 } 49 }
55 50
56 virtual void Send(const void* buffer, size_t length) = 0; 51 virtual void Send(const void* buffer, size_t length) = 0;
52
53 void SendOkHeader(const char* contentType,
54 bool hasContentLength,
55 uint64_t contentLength,
56 const char* contentFilename);
57 57
58 void SendCustomOkHeader(const std::string& customHeader); 58 void SendCustomOkHeader(const std::string& customHeader);
59 59
60 void SendString(const std::string& s); 60 void SendString(const std::string& s);
61 61