An internal representation of a web request. This is not exposed to the user. More...
#include <InFlightWebRequest.h>
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 WebPostData & | GetPostBodyData () const |
const std::vector< std::string > & | GetAcceptableMimeTypes () const |
const std::vector< std::string > & | GetRequiredResponseHeaders () const |
const UrlProxySettings & | GetProxySettings () const |
const SSLSettings & | GetSSLSettings () 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 |
InFlightWebRequest * | CreateRetryRequest () 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 | |
NonCopyable & | operator= (const NonCopyable &)=delete |
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.