|
std::shared_ptr< Atom::Tools::Route > & | get_requested_route () |
|
Functions::FunctionsManager & | get_functions_manager () |
|
Functions::Function::Ptr & | get_current_function () |
|
virtual void | handleRequest (HTTPServerRequest &request, HTTPServerResponse &response) |
|
bool | SetupSSL_ () |
|
Functions::Function::Ptr | AddFunction_ (std::string endpoint, HTTP::EnumMethods method) |
|
virtual void | Process_ ()=0 |
|
bool | VerifySession_ () |
|
bool | VerifyPermissions_ () |
|
bool | IdentifyRoute_ () |
|
void | ManageRequestBody_ () |
|
std::map< HTTP::Status, Attributes > & | get_responses_ () |
|
void | CompoundResponse_ (HTTP::Status status, JSON::Object::Ptr result_json) |
|
void | CompoundFillResponse_ (HTTP::Status status, JSON::Object::Ptr result_json, std::string message) |
|
void | JSONResponse_ (HTTP::Status status, std::string message) |
|
void | HTMLResponse_ (HTTP::Status status, std::string message) |
|
void | CustomHTMLResponse_ (HTTP::Status status, std::string html_message) |
|
void | FileResponse_ (HTTP::Status status, std::string address) |
|
HTTPServerRequestPtr & | get_http_server_request () |
|
HTTPServerResponsePtr & | get_http_server_response () |
|
std::vector< HTTP::Header > | get_headers () |
|
std::vector< HTTP::Cookie > | get_cookies () |
|
std::string | get_uri () const |
|
std::string | get_method () const |
|
std::string | get_content_type () const |
|
Net::NameValueCollection | get_content_type_parameters () const |
|
void | AddHeader_ (std::string name, std::string value) |
|
void | AddCookie_ (std::string name, std::string value) |
|
std::map< const std::string, EnumMethods > & | get_map_string_methods () |
|
std::map< EnumMethods, const std::string > & | get_map_enum_methods () |
|
EnumMethods | GetMethod_ (const std::string method) |
|
const std::string | GetMethod_ (EnumMethods &method) |
|
void | AddProcess_ (const std::string method, MethodProcess process) |
|
bool | EvaluateProcess_ (std::string request_method) |
|
Public Member Functions inherited from Atom::HTTP::Body |
Type | get_body_type () const |
|
URI::QueryParameters & | get_query_parameters () |
|
Files::FileManager & | get_files_parameters () |
|
std::shared_ptr< HTMLForm > & | get_form () |
|
void | ReadFormMultipart_ (Net::HTTPServerRequest &request) |
|
void | ReadFormURLEncoded_ (Net::HTTPServerRequest &request, std::istream &stream) |
|
void | ReadJSON_ (std::istream &stream) |
|
void | ReadFromURI_ (std::string &uri) |
|
JSON::Array::Ptr | get_json_array () const |
|
JSON::Object::Ptr | get_json_object () const |
|
JSON::Array::Ptr & | get_json_array () |
|
JSON::Object::Ptr & | get_json_object () |
|
void | set_json_array (JSON::Array::Ptr json_array) |
|
void | set_json_object (JSON::Object::Ptr json_object) |
|
void | Parse_ (std::string &string_to_parse) |
|
JSON::Object::Ptr | ExtractObject_ (Dynamic::Var &object) |
|
JSON::Array::Ptr | ExtractArray_ (Dynamic::Var &object) |
|
|
using | HTTPServerRequestPtr = std::optional< HTTPServerRequest * > |
|
using | HTTPServerResponsePtr = std::optional< HTTPServerResponse * > |
|
using | MethodProcess = std::function< void(HTTP::Methods &)> |
|
Public Types inherited from Atom::HTTP::Body |
enum class | Type { kFormMultipart
, kFormURLEncoded
, kJSON
, kURI
} |
|
using | Ptr = std::shared_ptr< Body > |
|
void | FillResponses_ () |
|
void | FillStatusMessage_ (JSON::Object::Ptr json_object, HTTP::Status status, std::string message) |
|
void | SetupRequest_ (Net::HTTPServerRequest &request) |
|
void | SetupResponse_ (Net::HTTPServerResponse &response) |
|
void | SetupHeaders_ () |
|
void | SetupCookies_ () |
|
void | MapMethods_ () |
|