mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
414f470c79
* Refactoring: part 1 * Refactoring: part 2 * Handle request using ReadBuffer interface * Struggles with ReadBuffer's * Fix URI parsing * Implement parsing of multipart/form-data * Check HTTP_LENGTH_REQUIRED before eof() or will hang * Fix HTTPChunkedReadBuffer * Fix build and style * Fix test * Resist double-eof * Fix arcadian build
24 lines
475 B
C++
24 lines
475 B
C++
#pragma once
|
|
|
|
#include <Server/HTTP/HTTPRequestHandler.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IServer;
|
|
|
|
/// Response with HTML page that allows to send queries and show results in browser.
|
|
class WebUIRequestHandler : public HTTPRequestHandler
|
|
{
|
|
private:
|
|
IServer & server;
|
|
std::string resource_name;
|
|
public:
|
|
WebUIRequestHandler(IServer & server_, std::string resource_name_);
|
|
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
|
|
};
|
|
|
|
}
|
|
|