MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetJsonEncoder

Method GetJsonEncoder

lib/remote/httpmessage.cpp:259–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258template<bool isRequest, typename Body, typename StreamVariant>
259JsonEncoder OutgoingHttpMessage<isRequest, Body, StreamVariant>::GetJsonEncoder(bool pretty)
260{
261 return JsonEncoder{
262 std::make_shared<HttpResponseJsonWriter<OutgoingHttpMessage<isRequest, Body, StreamVariant>>>(*this), pretty
263 };
264}
265
266// More general instantiations
267template class icinga::OutgoingHttpMessage<true, SerializableFlatBufferBody, AsioTlsOrTcpStream>;

Callers 2

HandleRequestMethod · 0.80
SendJsonBodyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected