3#include <userver/server/middlewares/http_middleware_base.hpp>
11 static constexpr std::string_view kName{
"testsuite-exceptions-handling-middleware"};
13 explicit ExceptionsHandlingMiddleware(
const server::handlers::
HttpHandlerBase& handler);
16 void HandleRequest(server::
http::HttpRequest& request, server::
request::RequestContext& context)
const override;
21using ExceptionsHandlingMiddlewareFactory =
22 server::
middlewares::SimpleHttpMiddlewareFactory<ExceptionsHandlingMiddleware>;