comparison Core/HttpServer/HttpFileSender.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
42 private: 42 private:
43 std::string contentType_; 43 std::string contentType_;
44 std::string filename_; 44 std::string filename_;
45 45
46 public: 46 public:
47 void SetContentType(MimeType contentType)
48 {
49 contentType_ = EnumerationToString(contentType);
50 }
51
47 void SetContentType(const std::string& contentType) 52 void SetContentType(const std::string& contentType)
48 { 53 {
49 contentType_ = contentType; 54 contentType_ = contentType;
50 } 55 }
51 56