7 #include "WebPostData.h"
9 #include "UrlHelpers.h"
26 const TWebRequestId requestId,
29 const Eegeo::Web::HttpVerbs::Values httpVerb,
30 const std::string& url,
34 WebRequestBuilder& AddHeader(
const std::string& headerFieldName,
const std::string& value);
35 WebRequestBuilder& AddQueryParam(
const std::string& keyName,
const std::string& value);
36 WebRequestBuilder& AddFormData(
const std::string& keyName,
const std::string& value);
45 WebRequestBuilder& SetShouldCacheAggressively(
const bool shouldCacheAggressively);
48 WebRequestBuilder& SetAllowCacheFetchWithoutHeaders(
const bool allowCacheFetchWithoutHeaders);
58 bool HasPostBodyData();
60 bool TryAddConditionalGetHeaders();
62 Eegeo::Web::HttpVerbs::Values m_httpVerb;
69 std::string m_userAgent;
71 int m_timeoutInSeconds;
73 bool m_hasPostBodyData;
74 std::map<std::string, std::string> m_httpRequestHeaders;
75 std::map<std::string, WebPostData> m_httpPostData;
76 std::vector<std::string> m_acceptableMimeTypes;
77 std::vector<std::string> m_requiredResponseHeaderNames;
79 TWebRequestId m_requestId;
83 bool m_shouldCacheAggressively;
85 bool m_shouldCacheResponse;
86 bool m_allowCacheFetchWithoutHeaders;