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

Class IntSettingMiddleware

tests/unittest.cpp:827–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825}
826
827struct IntSettingMiddleware
828{
829 struct context
830 {
831 int val;
832 };
833
834 template<typename AllContext>
835 void before_handle(request&, response&, context& ctx, AllContext&)
836 {
837 ctx.val = 1;
838 }
839
840 template<typename AllContext>
841 void after_handle(request&, response&, context& ctx, AllContext&)
842 {
843 ctx.val = 2;
844 }
845};
846
847std::vector<std::string> test_middleware_context_vector;
848

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected