MCPcopy Create free account
hub / github.com/ByConity/ByConity / base64Encode

Function base64Encode

src/Server/HTTPHandler.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static 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
155static Poco::Net::HTTPResponse::HTTPStatus exceptionCodeToHTTPStatus(int exception_code)
156{

Callers 1

authenticateUserMethod · 0.70

Calls 3

rdbufMethod · 0.80
closeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected