Mercurial > hg > orthanc
comparison Core/HttpServer/HttpOutput.h @ 2908:9d277f8ad698
new enumeration: MimeType
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 16:16:07 +0100 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2907:0204af4ece6a | 2908:9d277f8ad698 |
---|---|
163 const std::string& message) | 163 const std::string& message) |
164 { | 164 { |
165 SendStatus(status, message.c_str(), message.size()); | 165 SendStatus(status, message.c_str(), message.size()); |
166 } | 166 } |
167 | 167 |
168 void SetContentType(const char* contentType) | 168 void SetContentType(MimeType contentType) |
169 { | 169 { |
170 stateMachine_.SetContentType(contentType); | 170 stateMachine_.SetContentType(EnumerationToString(contentType)); |
171 } | |
172 | |
173 void SetContentType(const std::string& contentType) | |
174 { | |
175 stateMachine_.SetContentType(contentType.c_str()); | |
171 } | 176 } |
172 | 177 |
173 void SetContentFilename(const char* filename) | 178 void SetContentFilename(const char* filename) |
174 { | 179 { |
175 stateMachine_.SetContentFilename(filename); | 180 stateMachine_.SetContentFilename(filename); |