Android-cuttlefish cvd tool
Public Member Functions | Public Attributes | List of all members
cuttlefish::HttpResponse< T > Struct Template Reference

#include <http_client.h>

Public Member Functions

bool HttpInfo () const
 
bool HttpSuccess () const
 
bool HttpRedirect () const
 
bool HttpClientError () const
 
bool HttpServerError () const
 
std::string StatusDescription () const
 

Public Attributes

std::conditional< std::is_void_v< T >, HttpVoidResponse, T >::type data
 
long http_code
 
std::vector< HttpHeaderheaders
 

Member Function Documentation

◆ HttpClientError()

template<typename T >
bool cuttlefish::HttpResponse< T >::HttpClientError ( ) const
inline

◆ HttpInfo()

template<typename T >
bool cuttlefish::HttpResponse< T >::HttpInfo ( ) const
inline

◆ HttpRedirect()

template<typename T >
bool cuttlefish::HttpResponse< T >::HttpRedirect ( ) const
inline

◆ HttpServerError()

template<typename T >
bool cuttlefish::HttpResponse< T >::HttpServerError ( ) const
inline

◆ HttpSuccess()

template<typename T >
bool cuttlefish::HttpResponse< T >::HttpSuccess ( ) const
inline

◆ StatusDescription()

template<typename T >
std::string cuttlefish::HttpResponse< T >::StatusDescription ( ) const
inline

Member Data Documentation

◆ data

template<typename T >
std::conditional<std::is_void_v<T>,HttpVoidResponse,T>::type cuttlefish::HttpResponse< T >::data

◆ headers

template<typename T >
std::vector<HttpHeader> cuttlefish::HttpResponse< T >::headers

◆ http_code

template<typename T >
long cuttlefish::HttpResponse< T >::http_code

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