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

Public Types

enum class  Type { kFormMultipart , kFormURLEncoded , kJSON , kURI }
 
using Ptr = std::shared_ptr< Body >
 

Public Member Functions

Type get_body_type () const
 
URI::QueryParameters & get_query_parameters ()
 
Files::FileManagerget_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)
 
- Public Member Functions inherited from Atom::Tools::ManageJSON
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)