class
#include <IO/WebRequest.h>
WebRequestAsync Represents asynchronous web request.
Base classes
- class WebRequestBase
- Base class of web requests.
Constructors, destructors, conversion operators
- WebRequestAsync() defaulted
- WebRequestAsync(const WebRequestAsync& other) defaulted
Public functions
- auto operator=(const WebRequestAsync& other) -> WebRequestAsync& defaulted
- void Run()
- Executes the request to the server asynchronously.
- void Cancel()
- Cancels the active request.
- auto GetAuthChallenge() const -> WebAuthChallenge
- Returns the current authentication challenge while the state of the request is State::
Unauthorized. -
auto GetId() const -> std::
int32_t - Returns the ID specified while creating the request.
- auto GetSession() const -> WebSessionAsync&
- Returns the underlying session.
- auto GetState() const -> State
- Returns the current state of the request.