93 public HTTPRequestHandler
104 std::string content_type;
105 Net::NameValueCollection content_type_parameters;
113 auto& var = properties_;
116 std::shared_ptr<NAF::Tools::Route>& get_requested_route()
118 auto& var = requested_route_;
123 auto& var = functions_manager_;
126 Functions::Function::Ptr& get_current_function()
128 auto& var = current_function_;
132 void set_current_function(Functions::Function::Ptr function) {current_function_ = function; }
134 virtual void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response);
136 Functions::Function::Ptr AddFunction_(std::string endpoint, HTTP::EnumMethods method);
137 virtual void Process_() = 0;
138 bool VerifySession_();
139 bool VerifyPermissions_();
140 bool IdentifyRoute_();
141 void ManageRequestBody_();
142 void IdentifyParameters_();
145 void SetupProperties_();
146 void IdentifyParameters_(std::shared_ptr<Net::HTMLForm> form);
147 void IdentifyParameters_(Files::FileManager& files_parameters);
148 void IdentifyParameters_(JSON::Array::Ptr json_array);
149 void IdentifyParameters_(URI::QueryParameters& query_parameters);
152 struct Properties properties_;
153 std::list<std::string> targets_;
154 std::shared_ptr<NAF::Tools::Route> requested_route_;
155 Functions::FunctionsManager functions_manager_;
156 Functions::Function::Ptr current_function_;