Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Internal::RCurlConnection::RStatus Struct Reference

Return value for both HEAD and GET requests.

In case of errors, provides the reason for the failure as code and as message.

Definition at line 47 of file RCurlConnection.hxx.

Public Types

enum  EStatusCode {
  kSuccess = 0 , kTooManyRanges , kNotFound , kForbidden ,
  kIOError , kUnknown
}

Public Member Functions

 RStatus ()=default
 RStatus (EStatusCode code)
 operator bool () const

Public Attributes

EStatusCode fStatusCode = kUnknown
std::string fStatusMsg

#include <ROOT/RCurlConnection.hxx>

Member Enumeration Documentation

◆ EStatusCode

Enumerator
kSuccess 
kTooManyRanges  

should not get to the user; number of request ranges is automatically reduced as needed

kNotFound  
kForbidden  
kIOError  
kUnknown  

Definition at line 48 of file RCurlConnection.hxx.

Constructor & Destructor Documentation

◆ RStatus() [1/2]

ROOT::Internal::RCurlConnection::RStatus::RStatus ( )
default

◆ RStatus() [2/2]

ROOT::Internal::RCurlConnection::RStatus::RStatus ( EStatusCode code)
inlineexplicit

Definition at line 61 of file RCurlConnection.hxx.

Member Function Documentation

◆ operator bool()

ROOT::Internal::RCurlConnection::RStatus::operator bool ( ) const
inlineexplicit

Definition at line 63 of file RCurlConnection.hxx.

Member Data Documentation

◆ fStatusCode

EStatusCode ROOT::Internal::RCurlConnection::RStatus::fStatusCode = kUnknown

Definition at line 57 of file RCurlConnection.hxx.

◆ fStatusMsg

std::string ROOT::Internal::RCurlConnection::RStatus::fStatusMsg

Definition at line 58 of file RCurlConnection.hxx.

Collaboration diagram for ROOT::Internal::RCurlConnection::RStatus:
[legend]

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