FailingHttpWebApp.hpp
Go to the documentation of this file.
1 // @formatter:off
2 //
3 // Balau core C++ library
4 //
5 // Copyright (C) 2017 Bora Software (contact@borasoftware.com)
6 //
7 // Licensed under the Boost Software License - Version 1.0 - August 17th, 2003.
8 // See the LICENSE file for the full license text.
9 //
10 
16 
17 #ifndef COM_BORA_SOFTWARE__BALAU_NETWORK_HTTP_SERVER_HTTP_WEB_APPS__FAILING_HTTP_WEB_APP
18 #define COM_BORA_SOFTWARE__BALAU_NETWORK_HTTP_SERVER_HTTP_WEB_APPS__FAILING_HTTP_WEB_APP
19 
21 
22 namespace Balau{
23 
24 class BalauLogger;
25 
26 namespace Network::Http::HttpWebApps {
27 
28 class FailingHttpWebApp : public HttpWebApp {
29  public: void handleGetRequest(HttpSession & session,
30  const StringRequest & request,
31  std::map<std::string, std::string> & variables) override;
32 
33  public: void handleHeadRequest(HttpSession & session,
34  const StringRequest & request,
35  std::map<std::string, std::string> & variables) override;
36 
37  public: void handlePostRequest(HttpSession & session,
38  const StringRequest & request,
39  std::map<std::string, std::string> & variables) override;
40 };
41 
42 } // namespace Network::Http::HttpWebApps
43 
44 } // namespace Balau
45 
46 #pragma clang diagnostic pop
47 
48 #endif // COM_BORA_SOFTWARE__BALAU_NETWORK_HTTP_SERVER_HTTP_WEB_APPS__FAILING_HTTP_WEB_APP
The root Balau namespace.
Definition: ApplicationConfiguration.hpp:23
Abstract base class of HTTP web application handlers.
Request< StringBody > StringRequest
A request with a string body.
Definition: NetworkTypes.hpp:267