All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Eegeo::Web::WebResponse Class Reference

A (largely immutable) class that represents the user-facing result of a WebLoadRequest. More...

#include <WebResponse.h>

Inheritance diagram for Eegeo::Web::WebResponse:
Eegeo::Web::IWebResponse Eegeo::NonCopyable

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 WebPostDataGetPostBodyData () 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
 
NonCopyableoperator= (const NonCopyable &)=delete
 

Detailed Description

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.


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