AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StandardHttpRequest.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/http/HttpRequest.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14namespace Aws
15{
16 namespace Http
17 {
18 namespace Standard
19 {
23 class AWS_CORE_API StandardHttpRequest : public HttpRequest
24 {
25 public:
29 StandardHttpRequest(const URI& uri, HttpMethod method);
30
34 virtual HeaderValueCollection GetHeaders() const override;
40 virtual const Aws::String& GetHeaderValue(const char* headerName) const override;
44 virtual void SetHeaderValue(const char* headerName, const Aws::String& headerValue) override;
48 virtual void SetHeaderValue(const Aws::String& headerName, const Aws::String& headerValue) override;
52 virtual void DeleteHeader(const char* headerName) override;
56 virtual inline void AddContentBody(const std::shared_ptr<Aws::IOStream>& strContent) override { bodyStream = strContent; }
60 virtual inline const std::shared_ptr<Aws::IOStream>& GetContentBody() const override { return bodyStream; }
64 virtual bool HasHeader(const char*) const override;
68 virtual int64_t GetSize() const override;
72 virtual const Aws::IOStreamFactory& GetResponseStreamFactory() const override;
76 virtual void SetResponseStreamFactory(const Aws::IOStreamFactory& factory) override;
77
78 private:
79 HeaderValueCollection headerMap;
80 std::shared_ptr<Aws::IOStream> bodyStream;
81 Aws::IOStreamFactory m_responseStreamFactory;
82 };
83
84 } // namespace Standard
85 } // namespace Http
86} // namespace Aws
87
88
virtual void SetHeaderValue(const char *headerName, const Aws::String &headerValue) override
virtual const std::shared_ptr< Aws::IOStream > & GetContentBody() const override
virtual HeaderValueCollection GetHeaders() const override
virtual int64_t GetSize() const override
virtual void SetResponseStreamFactory(const Aws::IOStreamFactory &factory) override
virtual bool HasHeader(const char *) const override
virtual void AddContentBody(const std::shared_ptr< Aws::IOStream > &strContent) override
virtual const Aws::String & GetHeaderValue(const char *headerName) const override
virtual const Aws::IOStreamFactory & GetResponseStreamFactory() const override
virtual void SetHeaderValue(const Aws::String &headerName, const Aws::String &headerValue) override
StandardHttpRequest(const URI &uri, HttpMethod method)
virtual void DeleteHeader(const char *headerName) override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition HttpTypes.h:62
std::function< Aws::IOStream *(void) > IOStreamFactory
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97