comparison Core/RestApi/RestApiOutput.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
73 void AnswerStream(IHttpStreamAnswer& stream); 73 void AnswerStream(IHttpStreamAnswer& stream);
74 74
75 void AnswerJson(const Json::Value& value); 75 void AnswerJson(const Json::Value& value);
76 76
77 void AnswerBuffer(const std::string& buffer, 77 void AnswerBuffer(const std::string& buffer,
78 const std::string& contentType); 78 MimeType contentType);
79 79
80 void AnswerBuffer(const void* buffer, 80 void AnswerBuffer(const void* buffer,
81 size_t length, 81 size_t length,
82 const std::string& contentType); 82 MimeType contentType);
83 83
84 void SignalError(HttpStatus status); 84 void SignalError(HttpStatus status);
85 85
86 void SignalError(HttpStatus status, 86 void SignalError(HttpStatus status,
87 const std::string& message); 87 const std::string& message);