VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::HttpResult Struct Reference

#include <HttpResult.hpp>

Public Member Functions

bool IsSuccess () const
 

Public Attributes

bool Ok = false
 the server answered, with any status; when false, Error says why
 
long StatusCode = 0
 
std::string Body
 
std::string Error
 

Detailed Description

How an HTTP request ended.

Definition at line 10 of file HttpResult.hpp.

Member Function Documentation

◆ IsSuccess()

bool VoltMod::HttpResult::IsSuccess ( ) const
inline

The server answered with a 2xx status.

Definition at line 18 of file HttpResult.hpp.

References Ok, and StatusCode.

Member Data Documentation

◆ Body

std::string VoltMod::HttpResult::Body

Definition at line 14 of file HttpResult.hpp.

◆ Error

std::string VoltMod::HttpResult::Error

Definition at line 15 of file HttpResult.hpp.

Referenced by VoltMod::ToResult().

◆ Ok

bool VoltMod::HttpResult::Ok = false

the server answered, with any status; when false, Error says why

Definition at line 12 of file HttpResult.hpp.

Referenced by IsSuccess().

◆ StatusCode

long VoltMod::HttpResult::StatusCode = 0

Definition at line 13 of file HttpResult.hpp.

Referenced by IsSuccess().


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