AWS SDK for C++  1.9.73
AWS SDK for C++
AmazonStreamingWebServiceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
16 
17 namespace Aws
18 {
19  static const char* DEFAULT_CONTENT_TYPE = "binary/octet-stream";
20 
26  {
27  public:
32  {
33  }
34 
36 
40  inline std::shared_ptr<Aws::IOStream> GetBody() const override { return m_bodyStream; }
44  inline void SetBody(const std::shared_ptr<Aws::IOStream>& body) { m_bodyStream = body; }
50  {
51  auto headers = GetRequestSpecificHeaders();
52  headers.insert(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, GetContentType()));
53 
54  return headers;
55  }
56 
60  bool IsStreaming() const override { return true; }
61 
65  const Aws::String& GetContentType() const { return m_contentType; }
69  void SetContentType(const Aws::String& contentType) { m_contentType = contentType; }
70 
71  protected:
76 
77  private:
78  std::shared_ptr<Aws::IOStream> m_bodyStream;
79  Aws::String m_contentType;
80  };
81 
82 } // namespace Aws
83 
Aws::AmazonWebServiceRequest
Definition: AmazonWebServiceRequest.h:37
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::AmazonStreamingWebServiceRequest::SetBody
void SetBody(const std::shared_ptr< Aws::IOStream > &body)
Definition: AmazonStreamingWebServiceRequest.h:44
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Http::CONTENT_TYPE_HEADER
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
Aws::AmazonStreamingWebServiceRequest::AmazonStreamingWebServiceRequest
AmazonStreamingWebServiceRequest()
Definition: AmazonStreamingWebServiceRequest.h:31
Aws::DEFAULT_CONTENT_TYPE
static const char * DEFAULT_CONTENT_TYPE
Definition: AmazonStreamingWebServiceRequest.h:19
AWSStreamFwd.h
HttpRequest.h
Aws::AmazonStreamingWebServiceRequest::SetContentType
void SetContentType(const Aws::String &contentType)
Definition: AmazonStreamingWebServiceRequest.h:69
Aws::Http::HeaderValuePair
std::pair< Aws::String, Aws::String > HeaderValuePair
Definition: HttpTypes.h:52
Aws::AmazonStreamingWebServiceRequest::~AmazonStreamingWebServiceRequest
virtual ~AmazonStreamingWebServiceRequest()
AmazonWebServiceRequest.h
AWSString.h
Aws::AmazonStreamingWebServiceRequest::GetRequestSpecificHeaders
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const
Definition: AmazonStreamingWebServiceRequest.h:75
Core_EXPORTS.h
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::AmazonStreamingWebServiceRequest::GetBody
std::shared_ptr< Aws::IOStream > GetBody() const override
Definition: AmazonStreamingWebServiceRequest.h:40
Aws::AmazonStreamingWebServiceRequest::IsStreaming
bool IsStreaming() const override
Definition: AmazonStreamingWebServiceRequest.h:60
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::AmazonStreamingWebServiceRequest::GetHeaders
Aws::Http::HeaderValueCollection GetHeaders() const override
Definition: AmazonStreamingWebServiceRequest.h:49
Aws::AmazonStreamingWebServiceRequest::GetContentType
const Aws::String & GetContentType() const
Definition: AmazonStreamingWebServiceRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UnreferencedParam.h