Wrapper over a response status code. More...
#include <kcurl/http_status.hpp>
Public Types | |
| enum struct | Code : std::int64_t { Ok = 200 } |
| Response Status Code. More... | |
| enum class | Category : std::int8_t { Informational , Successful , Redirection , ClientError , ServerError , Other } |
| Category of Response status code. More... | |
Public Member Functions | |
| Status ()=default | |
| constexpr | Status (std::int64_t const code) |
| constexpr auto | get_code () const -> Code |
| constexpr auto | get_category () const -> Category |
| constexpr auto | is_success () const -> bool |
| constexpr auto | is_error () const -> bool |
| explicit (false) const expr operator Code() const | |
Wrapper over a response status code.
|
strong |
Category of Response status code.
| Enumerator | |
|---|---|
| Informational | |
| Successful | |
| Redirection | |
| ClientError | |
| ServerError | |
| Other | |
|
strong |
|
default |
|
inlineexplicitconstexpr |
| code | Pass an easy::Response::code here. |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |