5 #include "IWebLoadRequest.h"
6 #include "WebPostData.h"
7 #include "UrlProxySettings.h"
8 #include "SSLSettings.h"
27 const HttpVerbs::Values httpVerb,
28 const std::string& url,
29 const std::string& userAgent,
31 const int timeoutInSeconds,
32 const std::map<std::string, std::string>& httpRequestHeaders,
33 const std::map<std::string, WebPostData>& httpPostData,
35 const std::vector<std::string>& acceptableMimeTypes,
36 const std::vector<std::string>& requiredResponseHeaders,
42 TWebRequestId GetRequestId()
const;
43 HttpVerbs::Values GetHttpVerb()
const;
44 std::string GetUrl()
const;
45 std::string GetUserAgent()
const;
46 int GetRetryLimit()
const;
47 int GetTimeoutInSeconds()
const;
48 int GetHttpStatusCode()
const;
49 WebLoadResponseCompletionCode::Values GetCompletionCode()
const;
50 const std::map<std::string, std::string>& GetHttpRequestHeaders()
const;
51 const std::map<std::string, WebPostData>& GetHttpPostData()
const;
53 const std::vector<std::string>& GetAcceptableMimeTypes()
const;
54 const std::vector<std::string>& GetRequiredResponseHeaders()
const;
58 bool HasPostBodyData();
60 bool CanRetry()
const;
61 bool HasCacheHeaders()
const;
63 const TResourceData& GetHeaderData()
const;
64 const TResourceData& GetBodyData()
const;
66 bool IsComplete()
const;
67 bool IsCancelled()
const;
68 size_t GetPreDecompressBytesRead()
const;
73 void SetComplete(
const int httpStatusCode,
const WebLoadResponseCompletionCode::Values completionCode);
75 void SetPreDecompressBytesRead(
size_t numBytes);
77 void AppendHeaderData(Byte* data,
size_t size);
78 void AppendBodyData(Byte* data,
size_t size);
79 void ReserveBodyDataCapacity(
const size_t size);
81 void TransferResourceDataOwnership(TResourceData*& outHeaderData, TResourceData*& outBodyData);
84 const TWebRequestId m_requestId;
85 const HttpVerbs::Values m_httpVerb;
86 const std::string m_url;
87 const std::string m_userAgent;
88 const int m_retryLimit;
89 const int m_timeoutInSeconds;
90 const std::map<std::string, std::string> m_httpRequestHeaders;
91 const std::map<std::string, WebPostData> m_httpPostData;
92 const std::vector<std::string> m_acceptableMimeTypes;
93 const std::vector<std::string> m_requiredResponseHeaders;
97 bool m_hasPostBodyData;
100 int m_httpStatusCode;
101 WebLoadResponseCompletionCode::Values m_completionCode;
104 size_t m_preDecompressBytesRead;
106 TResourceData* m_pHeaderData;
107 TResourceData* m_pBodyData;