comparison Core/HttpServer/MultipartStreamReader.h @ 3399:4e8205871967

OrthancPluginRegisterMultipartRestCallback() is working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 14:14:31 +0200
parents 4acd1431e603
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3398:4acd1431e603 3399:4e8205871967
50 public: 50 public:
51 virtual ~IHandler() 51 virtual ~IHandler()
52 { 52 {
53 } 53 }
54 54
55 virtual void Apply(const HttpHeaders& headers, 55 virtual void HandlePart(const HttpHeaders& headers,
56 const void* part, 56 const void* part,
57 size_t size) = 0; 57 size_t size) = 0;
58 }; 58 };
59 59
60 private: 60 private:
61 enum State 61 enum State
62 { 62 {
97 void CloseStream(); 97 void CloseStream();
98 98
99 static bool GetMainContentType(std::string& contentType, 99 static bool GetMainContentType(std::string& contentType,
100 const HttpHeaders& headers); 100 const HttpHeaders& headers);
101 101
102 static bool ParseMultipartHeaders(std::string& contentType, 102 static bool ParseMultipartContentType(std::string& contentType,
103 std::string& subType, // Possibly empty 103 std::string& subType, // Possibly empty
104 std::string& boundary, 104 std::string& boundary,
105 const HttpHeaders& headers); 105 const std::string& contentTypeHeader);
106 }; 106 };
107 } 107 }