comparison OrthancFramework/Sources/HttpServer/HttpFileSender.cpp @ 4298:db3932f9660d

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 18:21:03 +0100
parents bf7b9edf6b81
children d9473bd5ed43
comparison
equal deleted inserted replaced
4297:785a2713323e 4298:db3932f9660d
29 29
30 #include <boost/lexical_cast.hpp> 30 #include <boost/lexical_cast.hpp>
31 31
32 namespace Orthanc 32 namespace Orthanc
33 { 33 {
34 void HttpFileSender::SetContentType(MimeType contentType)
35 {
36 contentType_ = EnumerationToString(contentType);
37 }
38
39 void HttpFileSender::SetContentType(const std::string &contentType)
40 {
41 contentType_ = contentType;
42 }
43
44 const std::string &HttpFileSender::GetContentType() const
45 {
46 return contentType_;
47 }
48
34 void HttpFileSender::SetContentFilename(const std::string& filename) 49 void HttpFileSender::SetContentFilename(const std::string& filename)
35 { 50 {
36 filename_ = filename; 51 filename_ = filename;
37 52
38 if (contentType_.empty()) 53 if (contentType_.empty())
39 { 54 {
40 contentType_ = SystemToolbox::AutodetectMimeType(filename); 55 contentType_ = SystemToolbox::AutodetectMimeType(filename);
41 } 56 }
57 }
58
59 const std::string &HttpFileSender::GetContentFilename() const
60 {
61 return filename_;
62 }
63
64 HttpCompression HttpFileSender::SetupHttpCompression(bool, bool)
65 {
66 return HttpCompression_None;
42 } 67 }
43 68
44 69
45 bool HttpFileSender::HasContentFilename(std::string& filename) 70 bool HttpFileSender::HasContentFilename(std::string& filename)
46 { 71 {