comparison Core/HttpServer/HttpOutput.h @ 50:a15e90e5d6fc

rename in code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Sep 2012 15:50:12 +0200
parents 9be852ad33d2
children c996319e90bc
comparison
equal deleted inserted replaced
49:e1a3ae0dadf3 50:a15e90e5d6fc
1 /** 1 /**
2 * Palantir - A Lightweight, RESTful DICOM Store 2 * Palanthir - 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 Palantir 28 namespace Palanthir
29 { 29 {
30 class HttpOutput 30 class HttpOutput
31 { 31 {
32 private: 32 private:
33 void SendHeaderInternal(Palantir_HttpStatus status); 33 void SendHeaderInternal(Palanthir_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(Palantir_HttpStatus status); 59 void SendHeader(Palanthir_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)