AWS SDK for C++  1.8.76
AWS SDK for C++
DAXRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/dax/DAX_EXPORTS.h>
11 
12 namespace Aws
13 {
14 namespace DAX
15 {
17  {
18  public:
19  virtual ~DAXRequest () {}
20 
21  void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
22 
24  {
25  auto headers = GetRequestSpecificHeaders();
26 
27  if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
28  {
30  }
31  headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-04-19"));
32  return headers;
33  }
34 
35  protected:
37 
38  };
39 
40 
41 } // namespace DAX
42 } // namespace Aws
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: DAXRequest.h:23
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: DAXRequest.h:36
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
static const char AMZN_JSON_CONTENT_TYPE_1_1[]
std::pair< Aws::String, Aws::String > HeaderValuePair
Definition: HttpTypes.h:52
virtual ~DAXRequest()
Definition: DAXRequest.h:19
#define AWS_UNREFERENCED_PARAM(x)
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Definition: DAXRequest.h:21
#define AWS_DAX_API
Definition: DAX_EXPORTS.h:28
AWS_CORE_API const char API_VERSION_HEADER[]