| 825 | } |
| 826 | |
| 827 | struct 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 | |
| 847 | std::vector<std::string> test_middleware_context_vector; |
| 848 |
nothing calls this directly
no outgoing calls
no test coverage detected