comparison Core/HttpServer/HttpOutput.h @ 59:c996319e90bc orthanc-renaming

renaming in Core
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 16 Sep 2012 09:28:56 +0200
parents a15e90e5d6fc
children fe180eae201d
comparison
equal deleted inserted replaced
58:6da7fc87efaa 59:c996319e90bc
1 /** 1 /**
2 * Palanthir - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * This program is free software: you can redistribute it and/or 6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as 7 * modify it under the terms of the GNU General Public License as
23 #include <string> 23 #include <string>
24 #include <stdint.h> 24 #include <stdint.h>
25 #include "../Enumerations.h" 25 #include "../Enumerations.h"
26 #include "../FileStorage.h" 26 #include "../FileStorage.h"
27 27
28 namespace Palanthir 28 namespace Orthanc
29 { 29 {
30 class HttpOutput 30 class HttpOutput
31 { 31 {
32 private: 32 private:
33 void SendHeaderInternal(Palanthir_HttpStatus status); 33 void SendHeaderInternal(Orthanc_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(Palanthir_HttpStatus status); 59 void SendHeader(Orthanc_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)