Mercurial > hg > orthanc
comparison Core/HttpServer/HttpOutput.h @ 473:c9a5d72f8481
changing the namespace of HTTP enumerations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 17:22:13 +0200 |
parents | bdd72233b105 |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
472:722b56b99093 | 473:c9a5d72f8481 |
---|---|
43 class HttpOutput | 43 class HttpOutput |
44 { | 44 { |
45 private: | 45 private: |
46 typedef std::list< std::pair<std::string, std::string> > Header; | 46 typedef std::list< std::pair<std::string, std::string> > Header; |
47 | 47 |
48 void SendHeaderInternal(Orthanc_HttpStatus status); | 48 void SendHeaderInternal(HttpStatus status); |
49 | 49 |
50 void PrepareOkHeader(Header& header, | 50 void PrepareOkHeader(Header& header, |
51 const char* contentType, | 51 const char* contentType, |
52 bool hasContentLength, | 52 bool hasContentLength, |
53 uint64_t contentLength, | 53 uint64_t contentLength, |
72 | 72 |
73 void SendString(const std::string& s); | 73 void SendString(const std::string& s); |
74 | 74 |
75 void SendMethodNotAllowedError(const std::string& allowed); | 75 void SendMethodNotAllowedError(const std::string& allowed); |
76 | 76 |
77 void SendHeader(Orthanc_HttpStatus status); | 77 void SendHeader(HttpStatus status); |
78 | 78 |
79 void Redirect(const std::string& path); | 79 void Redirect(const std::string& path); |
80 | 80 |
81 // Higher-level constructs to send entire buffers ---------------------------- | 81 // Higher-level constructs to send entire buffers ---------------------------- |
82 | 82 |