Death::IO::WebRequestBase::Result struct

Result of synchronous operation.

Public static functions

static auto Ok(State state = State::Active) -> Result
Creates a successful or partial result.
static auto Cancelled() -> Result
Creates a cancelled result.
static auto Error(Containers::StringView error) -> Result
Creates a failed result.
static auto Unauthorized(Containers::StringView error) -> Result
Creates a result waiting for authorization.

Constructors, destructors, conversion operators

operator bool() const explicit noexcept
Whether the request did not fail.

Public variables

State state
The state of the request.
Containers::String error
The error message in case of a failure.