|
rest-cpp
REST-like framework and server for blazing fast web applications in C++11
|
Public Types | |
| enum | Method { GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, OPTIONS, PATCH, UNDEFINED } |
Public Member Functions | |
| template<class T > | |
| const T | header (std::string const &key, const T &default_value) |
| template<class T > | |
| const T | parameter (std::string const &key, const T &default_value) |
Public Attributes | |
| Method | method = Method::UNDEFINED |
| std::string | path |
|
std::multimap< std::string, std::string > | headers |
|
std::map< std::string, std::string > | parameters |
|
std::pair< std::string, std::string > | authorization |
| std::chrono::high_resolution_clock::time_point | time |
| std::string | raw |
| size_t | length = 0 |
| std::shared_ptr< Json::Value > | data = nullptr |
| std::shared_ptr< Session > | session = nullptr |
Basic REST request.
Request defines request method, parameters and headers.