aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
aegis::rest::rest_controller Class Reference

Public Member Functions

 rest_controller (const std::string &token, asio::io_context *_io_context)
 
 rest_controller (const std::string &token, const std::string &prefix, asio::io_context *_io_context)
 
 rest_controller (const std::string &token, const std::string &prefix, const std::string &host, asio::io_context *_io_context)
 
 rest_controller (const rest_controller &)=delete
 
 rest_controller (rest_controller &&)=delete
 
rest_controlleroperator= (const rest_controller &)=delete
 
rest_reply execute (rest::request_params &&params)
 Performs an HTTP request using the params provided. More...
 
rest_reply execute2 (rest::request_params &&params)
 Performs an HTTP request using the params provided. More...
 
void set_prefix (const std::string &prefix) noexcept
 
std::chrono::hours tz_bias ()
 
void tz_bias (std::chrono::hours bias)
 

Static Public Member Functions

static std::string get_method (RequestMethod method) noexcept
 

Member Function Documentation

rest_reply aegis::rest::rest_controller::execute ( rest::request_params &&  params)

Performs an HTTP request using the params provided.

See also
rest::rest_reply
rest::request_params
Parameters
paramsA struct of HTTP parameters to perform the request
Returns
rest::rest_reply
Exceptions
asio::system_error
rest_reply aegis::rest::rest_controller::execute2 ( rest::request_params &&  params)

Performs an HTTP request using the params provided.

See also
rest::rest_reply
rest::request_params
Parameters
paramsA struct of HTTP parameters to perform the request
Returns
rest::rest_reply
Exceptions
asio::system_error

The documentation for this class was generated from the following files: