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

Method method

tests/testrequest.cpp:93–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92 C_ATTR(method, :Local :AutoArgs)
93 void method(Context *c) { c->response()->setBody(c->request()->method()); }
94
95 C_ATTR(isPost, :Local :AutoArgs)
96 void isPost(Context *c) { c->response()->setBody(QVariant(c->request()->isPost()).toString()); }

Callers

nothing calls this directly

Calls 3

responseMethod · 0.80
requestMethod · 0.80
setBodyMethod · 0.60

Tested by

no test coverage detected