AWS SDK for C++  1.9.1
AWS SDK for C++
S3Request.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
12 
13 namespace Aws
14 {
15 namespace S3
16 {
18  {
19  public:
20  virtual ~S3Request () {}
21 
22  void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
23 
25  {
26  auto headers = GetRequestSpecificHeaders();
27 
28  if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
29  {
31  }
32  headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2006-03-01"));
33  return headers;
34  }
35 
36  protected:
38 
39  };
40 
42 
43 } // namespace S3
44 } // namespace Aws
Aws::S3::S3Request::AddParametersToRequest
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Definition: S3Request.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AmazonSerializableWebServiceRequest
Definition: AmazonSerializableWebServiceRequest.h:29
Aws::Http::HttpRequest
Definition: HttpRequest.h:73
Aws::S3::S3Request::GetHeaders
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: S3Request.h:24
Aws::Http::CONTENT_TYPE_HEADER
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
HttpRequest.h
AmazonStreamingWebServiceRequest.h
Aws::Http::HeaderValuePair
std::pair< Aws::String, Aws::String > HeaderValuePair
Definition: HttpTypes.h:52
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::S3Request::~S3Request
virtual ~S3Request()
Definition: S3Request.h:20
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::S3Request::GetRequestSpecificHeaders
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: S3Request.h:37
Aws::S3::StreamingS3Request
Aws::AmazonStreamingWebServiceRequest StreamingS3Request
Definition: S3Request.h:41
AWS_UNREFERENCED_PARAM
#define AWS_UNREFERENCED_PARAM(x)
Definition: UnreferencedParam.h:16
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws
Definition: AccessManagementClient.h:15
UnreferencedParam.h
Aws::AMZN_XML_CONTENT_TYPE
static const char AMZN_XML_CONTENT_TYPE[]
Definition: AmazonSerializableWebServiceRequest.h:21
Aws::Http::API_VERSION_HEADER
AWS_CORE_API const char API_VERSION_HEADER[]
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
AmazonSerializableWebServiceRequest.h