Classes | Public Member Functions | Protected Member Functions | List of all members
Atom::HTTP::CommonResponses Class Reference
Inheritance diagram for Atom::HTTP::CommonResponses:
Inheritance graph
[legend]
Collaboration diagram for Atom::HTTP::CommonResponses:
Collaboration graph
[legend]

Classes

struct  Attributes
 

Public Member Functions

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)
 
- Public Member Functions inherited from Atom::HTTP::Request
HTTPServerRequestPtr & get_http_server_request ()
 
HTTPServerResponsePtr & get_http_server_response ()
 
std::vector< HTTP::Headerget_headers ()
 
std::vector< HTTP::Cookieget_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)
 

Protected Member Functions

void FillResponses_ ()
 
void FillStatusMessage_ (JSON::Object::Ptr json_object, HTTP::Status status, std::string message)
 
- Protected Member Functions inherited from Atom::HTTP::Request
void SetupRequest_ (Net::HTTPServerRequest &request)
 
void SetupResponse_ (Net::HTTPServerResponse &response)
 
void SetupHeaders_ ()
 
void SetupCookies_ ()
 

Additional Inherited Members

- Public Types inherited from Atom::HTTP::Request
using HTTPServerRequestPtr = std::optional< HTTPServerRequest * >
 
using HTTPServerResponsePtr = std::optional< HTTPServerResponse * >