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

REST responses with error_code for possible exception throwing. More...

#include <rest_reply.hpp>

Public Member Functions

 rest_reply (std::string const &msg) noexcept
 
 rest_reply (http_code reply_code, bool global, int32_t limit, int32_t remaining, int64_t reset, int32_t retry, const std::string &content, std::chrono::system_clock::time_point date, std::chrono::steady_clock::duration exec_time=0ms) noexcept
 
 rest_reply (const std::string &msg, http_code reply_code=http_code::unknown, bool global=false, int32_t limit=0, int32_t remaining=0, int64_t reset=0, int32_t retry=0, const std::string &content="", std::chrono::steady_clock::duration exec_time=0ms) noexcept
 
 rest_reply (rest_reply &&)=default
 
rest_replyoperator= (const rest_reply &)=default
 
 rest_reply (const aegis::rest::rest_reply &)=default
 
 operator bool ()
 
bool success ()
 

Public Attributes

http_code reply_code
 
bool global = false
 
int32_t limit = 0
 
int32_t remaining = 0
 
int64_t reset = 0
 
int32_t retry = 0
 
std::string content
 
std::chrono::system_clock::time_point date
 
std::chrono::steady_clock::duration execution_time
 

Detailed Description

REST responses with error_code for possible exception throwing.

Member Data Documentation

std::string aegis::rest::rest_reply::content

REST call's reply body

std::chrono::system_clock::time_point aegis::rest::rest_reply::date

Current time from the remote server

std::chrono::steady_clock::duration aegis::rest::rest_reply::execution_time

Time it took to perform the request

bool aegis::rest::rest_reply::global = false

Is global ratelimited

int32_t aegis::rest::rest_reply::limit = 0

Rate limit current endpoint call limit

int32_t aegis::rest::rest_reply::remaining = 0

Rate limit remaining count

http_code aegis::rest::rest_reply::reply_code

REST HTTP reply code

int64_t aegis::rest::rest_reply::reset = 0

Rate limit reset time

int32_t aegis::rest::rest_reply::retry = 0

Rate limit retry time


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