All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WebRequestDto.h
1 // Copyright eeGeo Ltd (2015), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Web.h"
6 #include "WebPostData.h"
7 #include "UrlProxySettings.h"
8 #include "SSLSettings.h"
9 #include <string>
10 #include <map>
11 
12 namespace Eegeo
13 {
14  namespace Web
15  {
17  {
18  public:
20  const TWebRequestId webRequestId,
21  const HttpVerbs::Values httpVerb,
22  const std::string& url,
23  const std::string& userAgent,
24  const int retryLimit,
25  const int timeoutInSeconds,
26  const std::map<std::string, std::string>& httpRequestHeaders,
27  const std::map<std::string, WebPostData>& httpPostData,
28  const WebPostData postBodyData,
29  const std::vector<std::string>& acceptableMimeTypes,
30  const std::vector<std::string>& requiredResponseHeaders,
31  const UrlProxySettings& webProxySettings,
32  const SSLSettings& sslSettings)
33  : WebRequestId(webRequestId)
34  , HttpVerb(httpVerb)
35  , Url(url)
36  , UserAgent(userAgent)
37  , RetryLimit(retryLimit)
38  , TimeoutInSeconds(timeoutInSeconds)
39  , HttpRequestHeaders(httpRequestHeaders)
40  , HttpPostData(httpPostData)
41  , PostBodyData(postBodyData)
42  , AcceptableMimeTypes(acceptableMimeTypes)
43  , RequiredResponseHeaders(requiredResponseHeaders)
44  , ProxySettings(webProxySettings)
45  , SettingsSSL(sslSettings)
46  {
47 
48  }
49 
50  const TWebRequestId WebRequestId;
51  const HttpVerbs::Values HttpVerb;
52  const std::string Url;
53  const std::string UserAgent;
54  const int RetryLimit;
55  const int TimeoutInSeconds;
56  const std::map<std::string, std::string> HttpRequestHeaders;
57  const std::map<std::string, WebPostData> HttpPostData;
58  const WebPostData PostBodyData;
59  const std::vector<std::string> AcceptableMimeTypes;
60  const std::vector<std::string> RequiredResponseHeaders;
61  const UrlProxySettings ProxySettings;
62  const SSLSettings SettingsSSL;
63  };
64  }
65 }