mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Style fixes in HTTPHandlerFactory
This commit is contained in:
parent
2ddb801d0b
commit
eadc58bbd6
@ -23,7 +23,8 @@ Poco::Net::HTTPRequestHandler * HTTPRequestHandlerFactoryMain::createRequestHand
|
||||
<< ", Content Type: " << request.getContentType()
|
||||
<< ", Transfer Encoding: " << request.getTransferEncoding());
|
||||
|
||||
for (auto & handlerFactory: child_handler_factories) {
|
||||
for (auto & handlerFactory: child_handler_factories)
|
||||
{
|
||||
auto handler = handlerFactory->createRequestHandler(request);
|
||||
if (handler != nullptr)
|
||||
return handler;
|
||||
@ -39,4 +40,4 @@ Poco::Net::HTTPRequestHandler * HTTPRequestHandlerFactoryMain::createRequestHand
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -87,19 +87,22 @@ public:
|
||||
};
|
||||
|
||||
|
||||
struct RootEndpoint {
|
||||
struct RootEndpoint
|
||||
{
|
||||
static constexpr auto path = "/";
|
||||
static constexpr auto strict_path = true;
|
||||
using HandleType = RootRequestHandler;
|
||||
};
|
||||
|
||||
struct PingEndpoint {
|
||||
struct PingEndpoint
|
||||
{
|
||||
static constexpr auto path = "/ping";
|
||||
static constexpr auto strict_path = true;
|
||||
using HandleType = PingRequestHandler;
|
||||
};
|
||||
|
||||
struct ReplicasStatusEndpoint {
|
||||
struct ReplicasStatusEndpoint
|
||||
{
|
||||
static constexpr auto path = "/replicas_status";
|
||||
static constexpr auto strict_path = false;
|
||||
using HandleType = ReplicasStatusHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user