comparison OrthancFramework/Sources/RestApi/RestApiOutput.h @ 5406:aaf7c49a9ddc am-http-compression

tentative to implement smart HTTP compression with detection of transfer syntax
author Alain Mazy <am@osimis.io>
date Sat, 04 Nov 2023 13:42:30 +0100
parents 0ea402b4d901
children
comparison
equal deleted inserted replaced
5405:62bb63346185 5406:aaf7c49a9ddc
65 return output_; 65 return output_;
66 } 66 }
67 67
68 void AnswerStream(IHttpStreamAnswer& stream); 68 void AnswerStream(IHttpStreamAnswer& stream);
69 69
70 void AnswerStream(IHttpStreamAnswer& stream,
71 ContentCompression contentCompression);
72
70 void AnswerWithoutBuffering(IHttpStreamAnswer& stream); 73 void AnswerWithoutBuffering(IHttpStreamAnswer& stream);
74
75 void AnswerWithoutBuffering(IHttpStreamAnswer& stream,
76 ContentCompression contentCompression);
71 77
72 void AnswerJson(const Json::Value& value); 78 void AnswerJson(const Json::Value& value);
73 79
74 void AnswerBuffer(const std::string& buffer, 80 void AnswerBuffer(const std::string& buffer,
75 MimeType contentType); 81 MimeType contentType);
76 82
83 void AnswerBuffer(const std::string& buffer,
84 MimeType contentType,
85 ContentCompression contentCompression);
86
77 void AnswerBuffer(const void* buffer, 87 void AnswerBuffer(const void* buffer,
78 size_t length, 88 size_t length,
79 MimeType contentType); 89 MimeType contentType);
90
91 void AnswerBuffer(const void* buffer,
92 size_t length,
93 MimeType contentType,
94 ContentCompression contentCompression);
80 95
81 void SetContentFilename(const char* filename); 96 void SetContentFilename(const char* filename);
82 97
83 void SignalError(HttpStatus status); 98 void SignalError(HttpStatus status);
84 99