MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / errorQuery

Method errorQuery

tests/teststatusmessage.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44 C_ATTR(errorQuery, :Local :AutoArgs)
45 void errorQuery(Context *c)
46 {
47 ParamsMultiMap ret = StatusMessage::errorQuery(
48 c, u"SM:errorQuery"_s, ParamsMultiMap{{u"SM"_s, u"testing"_s}});
49 c->response()->setBody(c->uriFor(u"/"_s, ret).toString(QUrl::FullyEncoded));
50 }
51
52 C_ATTR(errorQueryTest, :Local :AutoArgs)
53 void errorQueryTest(Context *c, const QString &statusKey, const QString &errorKey)

Callers

nothing calls this directly

Calls 3

responseMethod · 0.80
setBodyMethod · 0.60
uriForMethod · 0.45

Tested by

no test coverage detected