A (largely immutable) class that represents the user-facing result of a WebLoadRequest. More...
#include <WebResponse.h>
Public Member Functions | |
WebResponse (const TWebRequestId requestId, const WebLoadResponseStatistics &statistics, const std::string &url, const HttpVerbs::Values httpVerb, const int httpStatusCode, void *const pUserData, const TResourceData *bodyData, const TResourceData *headerData, const WebPostData postBodyData, const WebLoadResponseCompletionCode::Values completionCode) | |
bool | IsSucceeded () const |
bool | IsErrored () const |
bool | IsCancelled () const |
bool | HasData () const |
std::string | GetUrl () const |
std::string | GetBaseUrl () const |
HttpVerbs::Values | GetHttpVerb () const |
int | GetHttpStatusCode () const |
void * | GetUserData () const |
const TResourceData & | GetHeaderData () const |
const TResourceData & | GetBodyData () const |
const WebPostData & | GetPostBodyData () const |
WebLoadResponseStatistics | GetStatistics () const |
bool | MatchesRequestId (const TWebRequestId requestId) const |
TWebRequestId | GetRequestId () const |
const TResourceData * | TransferResourceDataOwnership () |
Additional Inherited Members | |
Private Member Functions inherited from Eegeo::NonCopyable | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
A (largely immutable) class that represents the user-facing result of a WebLoadRequest.
We should avoid mutating this, or adding mutable fields. It represents a response (a result) and nothing more.