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

An internal representation of a web request. This is not exposed to the user. More...

#include <InFlightWebRequest.h>

Inheritance diagram for Eegeo::Web::InFlightWebRequest:
Eegeo::NonCopyable

Public Member Functions

 InFlightWebRequest (const TWebRequestId requestId, const HttpVerbs::Values httpVerb, const std::string &url, const std::string &userAgent, const int retryLimit, const int timeoutInSeconds, const std::map< std::string, std::string > &httpRequestHeaders, const std::map< std::string, WebPostData > &httpPostData, const WebPostData postBodyData, const std::vector< std::string > &acceptableMimeTypes, const std::vector< std::string > &requiredResponseHeaders, const UrlProxySettings &proxySettings, const SSLSettings &sslSettings)
 
TWebRequestId GetRequestId () const
 
HttpVerbs::Values GetHttpVerb () const
 
std::string GetUrl () const
 
std::string GetUserAgent () const
 
int GetRetryLimit () const
 
int GetTimeoutInSeconds () const
 
int GetHttpStatusCode () const
 
WebLoadResponseCompletionCode::Values GetCompletionCode () const
 
const std::map< std::string,
std::string > & 
GetHttpRequestHeaders () const
 
const std::map< std::string,
WebPostData > & 
GetHttpPostData () const
 
const WebPostDataGetPostBodyData () const
 
const std::vector< std::string > & GetAcceptableMimeTypes () const
 
const std::vector< std::string > & GetRequiredResponseHeaders () const
 
const UrlProxySettingsGetProxySettings () const
 
const SSLSettingsGetSSLSettings () const
 
bool HasPostBodyData ()
 
bool CanRetry () const
 
bool HasCacheHeaders () const
 
const TResourceData & GetHeaderData () const
 
const TResourceData & GetBodyData () const
 
bool IsComplete () const
 
bool IsCancelled () const
 
size_t GetPreDecompressBytesRead () const
 
InFlightWebRequestCreateRetryRequest () const
 
void SetComplete (const int httpStatusCode, const WebLoadResponseCompletionCode::Values completionCode)
 
void SetCancelled ()
 
void SetPreDecompressBytesRead (size_t numBytes)
 
void AppendHeaderData (Byte *data, size_t size)
 
void AppendBodyData (Byte *data, size_t size)
 
void ReserveBodyDataCapacity (const size_t size)
 
void TransferResourceDataOwnership (TResourceData *&outHeaderData, TResourceData *&outBodyData)
 

Additional Inherited Members

- Private Member Functions inherited from Eegeo::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 

Detailed Description

An internal representation of a web request. This is not exposed to the user.

Its responsibility is to store results as we receive header/body bytes over the wire.


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