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