pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::orch::HttpError Class Reference

A request that got no complete response: the connection, TLS, a timeout or a limit failed. More...

#include <http.hpp>

Inheritance diagram for pulsatrix::orch::HttpError:
Collaboration diagram for pulsatrix::orch::HttpError:

Public Types

enum class  Kind {
  InvalidRequest , Connect , Tls , Timeout ,
  TooLarge , Protocol , Other
}
 

Public Member Functions

 HttpError (Kind kind, const std::string &message)
 
Kind kind () const
 

Detailed Description

A request that got no complete response: the connection, TLS, a timeout or a limit failed.

Member Enumeration Documentation

◆ Kind

Enumerator
InvalidRequest 

a malformed URL or header, before anything is sent

Connect 

DNS or TCP failed.

Tls 

the handshake or certificate verification failed, or the build has no TLS

Timeout 

connect_timeout or read_timeout passed

TooLarge 

the body passed max_response_bytes

Protocol 

the response wasn't valid HTTP, or the connection closed mid-response

Other 

Constructor & Destructor Documentation

◆ HttpError()

pulsatrix::orch::HttpError::HttpError ( Kind  kind,
const std::string &  message 
)
inline

Member Function Documentation

◆ kind()

Kind pulsatrix::orch::HttpError::kind ( ) const
inline

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