ClickHouse/src/Server/NotFoundHandler.h
2024-02-29 15:40:30 +00:00

19 lines
460 B
C++

#pragma once
#include <Server/HTTP/HTTPRequestHandler.h>
namespace DB
{
/// Response with 404 and verbose description.
class NotFoundHandler : public HTTPRequestHandler
{
public:
explicit NotFoundHandler(std::vector<std::string> hints_) : hints(std::move(hints_)) {}
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) override;
private:
std::vector<std::string> hints;
};
}