2017-08-09 14:33:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-02-19 12:51:26 +00:00
|
|
|
#include <Server/HTTP/HTTPRequestHandler.h>
|
2017-08-09 14:33:07 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Response with 404 and verbose description.
|
2021-02-19 12:51:26 +00:00
|
|
|
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_)) {}
|
2024-01-03 16:47:15 +00:00
|
|
|
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) override;
|
2023-08-06 19:33:36 +00:00
|
|
|
private:
|
|
|
|
std::vector<std::string> hints;
|
2017-08-09 14:33:07 +00:00
|
|
|
};
|
|
|
|
|
2020-05-09 22:59:34 +00:00
|
|
|
}
|