ClickHouse/src/Server/NotFoundHandler.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
460 B
C++
Raw Normal View History

2017-08-09 14:33:07 +00:00
#pragma once
#include <Server/HTTP/HTTPRequestHandler.h>
2017-08-09 14:33:07 +00:00
namespace DB
{
/// Response with 404 and verbose description.
class NotFoundHandler : public HTTPRequestHandler
2017-08-09 14:33:07 +00:00
{
public:
2024-02-29 14:56:33 +00:00
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;
2017-08-09 14:33:07 +00:00
};
}