Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::http_t::Result Class Reference

The result class of the client operation stores the response data of the request or the error information of the client operation. More...

#include <ssgx_http_t_client.h>

Public Member Functions

 Result ()=default
 
 Result (std::unique_ptr< Response > &&res, const Error &err)
 
 operator bool () const
 
bool operator== (std::nullptr_t) const
 
bool operator!= (std::nullptr_t) const
 
const Responsevalue () const
 
Responsevalue ()
 
const Responseoperator* () const
 
Responseoperator* ()
 
const Responseoperator-> () const
 
Responseoperator-> ()
 
Error error () const
 

Detailed Description

The result class of the client operation stores the response data of the request or the error information of the client operation.

Constructor & Destructor Documentation

◆ Result() [1/2]

ssgx::http_t::Result::Result ( )
default

◆ Result() [2/2]

ssgx::http_t::Result::Result ( std::unique_ptr< Response > && res,
const Error & err )
inline

Member Function Documentation

◆ error()

Error ssgx::http_t::Result::error ( ) const
inlinenodiscard

◆ operator bool()

ssgx::http_t::Result::operator bool ( ) const
inlineexplicit

◆ operator!=()

bool ssgx::http_t::Result::operator!= ( std::nullptr_t ) const
inline

◆ operator*() [1/2]

Response & ssgx::http_t::Result::operator* ( )
inline

◆ operator*() [2/2]

const Response & ssgx::http_t::Result::operator* ( ) const
inline

◆ operator->() [1/2]

Response * ssgx::http_t::Result::operator-> ( )
inline

◆ operator->() [2/2]

const Response * ssgx::http_t::Result::operator-> ( ) const
inline

◆ operator==()

bool ssgx::http_t::Result::operator== ( std::nullptr_t ) const
inline

◆ value() [1/2]

Response & ssgx::http_t::Result::value ( )
inline

◆ value() [2/2]

const Response & ssgx::http_t::Result::value ( ) const
inlinenodiscard

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