1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2 
3 #ifndef TYPEQUERYHANDLER_H
4 #define TYPEQUERYHANDLER_H
5 
6 #include "remote/httphandler.hpp"
7 
8 namespace icinga
9 {
10 
11 class TypeQueryHandler final : public HttpHandler
12 {
13 public:
14 	DECLARE_PTR_TYPEDEFS(TypeQueryHandler);
15 
16 	bool HandleRequest(
17 		AsioTlsStream& stream,
18 		const ApiUser::Ptr& user,
19 		boost::beast::http::request<boost::beast::http::string_body>& request,
20 		const Url::Ptr& url,
21 		boost::beast::http::response<boost::beast::http::string_body>& response,
22 		const Dictionary::Ptr& params,
23 		boost::asio::yield_context& yc,
24 		HttpServerConnection& server
25 	) override;
26 };
27 
28 }
29 
30 #endif /* TYPEQUERYHANDLER_H */
31