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

Method protocol

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

Source from the content-addressed store, hash-verified

100
101 C_ATTR(protocol, :Local :AutoArgs)
102 void protocol(Context *c) { c->response()->setBody(c->request()->protocol()); }
103
104 C_ATTR(remoteUser, :Local :AutoArgs)
105 void remoteUser(Context *c) { c->response()->setBody(c->request()->remoteUser()); }

Callers

nothing calls this directly

Calls 3

responseMethod · 0.80
requestMethod · 0.80
setBodyMethod · 0.60

Tested by

no test coverage detected