$darkmode
Public Member Functions | |
| Request (const oatpp::web::protocol::http::incoming::Request &req) | |
| RequestMethod | method () const override |
| ContentType | type () const override |
| const std::string & | body () const override |
| const std::string & | uri () const override |
| const std::string & | endpoint () const override |
| const std::map< std::string, std::string > & | query_map () const override |
Public Member Functions inherited from cloe::Request | |
| virtual bool | has_json () const |
| virtual fable::Json | as_json () const |
Implementation of cloe::Request interface.
|
inlineexplicit |
Create a new Request from ServerImpl.
|
inlineoverridevirtual |
Returns the body of the request as a reference to a string.
Implements cloe::Request.
|
inlineoverridevirtual |
Returns just the endpoint part of the URI.
For example:
https://localhost:8080/cloe/simulation?type=json => /cloe/simulation
Implements cloe::Request.
|
inlineoverridevirtual |
Returns what method was used on this request, for example GET or POST.
Implements cloe::Request.
|
inlineoverridevirtual |
Returns a key-value map of the query parameters.
Implements cloe::Request.
|
inlineoverridevirtual |
Returns the type, if any, of the content.
Note that the client may not send the right content type for the content. This function checks the Content-Type header, and if that is not set, it may optionally check the body itself.
Implements cloe::Request.
|
inlineoverridevirtual |
Returns the path, including query string.
Implements cloe::Request.