MCPcopy Create free account
hub / github.com/CrowCpp/Crow / LocalSecretMiddleware

Class LocalSecretMiddleware

tests/unittest.cpp:985–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983} // middleware_context
984
985struct LocalSecretMiddleware : crow::ILocalMiddleware
986{
987 struct context
988 {};
989
990 void before_handle(request& /*req*/, response& res, context& /*ctx*/)
991 {
992 res.code = 403;
993 res.end();
994 }
995
996 void after_handle(request& /*req*/, response& /*res*/, context& /*ctx*/)
997 {}
998};
999
1000TEST_CASE("local_middleware")
1001{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected