| 142 | } |
| 143 | |
| 144 | static String base64Encode(const String & decoded) |
| 145 | { |
| 146 | std::ostringstream ostr; // STYLE_CHECK_ALLOW_STD_STRING_STREAM |
| 147 | ostr.exceptions(std::ios::failbit); |
| 148 | Poco::Base64Encoder encoder(ostr); |
| 149 | encoder.rdbuf()->setLineLength(0); |
| 150 | encoder << decoded; |
| 151 | encoder.close(); |
| 152 | return ostr.str(); |
| 153 | } |
| 154 | |
| 155 | static Poco::Net::HTTPResponse::HTTPStatus exceptionCodeToHTTPStatus(int exception_code) |
| 156 | { |
no test coverage detected