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

Class NotLocalMiddleware

tests/unittest.cpp:2335–2349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2333TEST_CASE("catchall_check_full_handling")
2334{
2335 struct NotLocalMiddleware {
2336 bool before_handle_called{false};
2337 bool after_handle_called{false};
2338
2339 struct context {
2340 };
2341
2342 void before_handle(request& /*req*/, response& /*res*/, context& /*ctx*/) {
2343 before_handle_called = true;
2344 }
2345
2346 void after_handle(request& /*req*/, response& /*res*/, context& /*ctx*/) {
2347 after_handle_called = true;
2348 }
2349 };
2350
2351 App<NotLocalMiddleware> app;
2352 bool headers_empty=true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected