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

Method test0

tests/testviewjson.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27 C_ATTR(test0, :Local)
28 void test0(Context *c)
29 {
30 c->response()->setContentType("text/plain"_ba);
31 c->setStash(u"foo"_s, QByteArrayLiteral("bar"));
32 c->setStash(u"bar"_s, QByteArrayLiteral("baz"));
33 c->forward(c->view());
34 }
35
36 C_ATTR(test1, :Local)
37 void test1(Context *c)

Callers

nothing calls this directly

Calls 5

setContentTypeMethod · 0.80
responseMethod · 0.80
setStashMethod · 0.80
forwardMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected