AWS SDK for C++  1.9.132
AWS SDK for C++
LambdaRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 
13 namespace Aws
14 {
15 namespace Lambda
16 {
18  {
19  public:
20  virtual ~LambdaRequest () {}
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, "2015-03-31"));
33  return headers;
34  }
35 
36  protected:
38 
39  };
40 
42 
43 } // namespace Lambda
44 } // namespace Aws
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::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
Aws::Lambda::LambdaRequest::AddParametersToRequest
void AddParametersToRequest(Aws::Http::HttpRequest &httpRequest) const
Definition: LambdaRequest.h:22
Aws::Lambda::StreamingLambdaRequest
Aws::AmazonStreamingWebServiceRequest StreamingLambdaRequest
Definition: LambdaRequest.h:41
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::LambdaRequest::GetHeaders
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: LambdaRequest.h:24
Aws::Lambda::LambdaRequest::GetRequestSpecificHeaders
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: LambdaRequest.h:37
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
AWS_UNREFERENCED_PARAM
#define AWS_UNREFERENCED_PARAM(x)
Definition: UnreferencedParam.h:16
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::LambdaRequest::~LambdaRequest
virtual ~LambdaRequest()
Definition: LambdaRequest.h:20
Aws::JSON_CONTENT_TYPE
static const char JSON_CONTENT_TYPE[]
Definition: AmazonSerializableWebServiceRequest.h:17
UnreferencedParam.h
Aws::Http::API_VERSION_HEADER
AWS_CORE_API const char API_VERSION_HEADER[]
Lambda_EXPORTS.h
AmazonSerializableWebServiceRequest.h