AWS SDK for C++  1.9.123
AWS SDK for C++
HttpRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 #include <aws/core/http/URI.h>
16 #include <memory>
17 #include <functional>
18 
19 namespace Aws
20 {
21  namespace Crt
22  {
23  namespace Http
24  {
25  class HttpRequest;
26  }
27  }
28  namespace Http
29  {
30  extern AWS_CORE_API const char DATE_HEADER[];
31  extern AWS_CORE_API const char AWS_DATE_HEADER[];
32  extern AWS_CORE_API const char AWS_SECURITY_TOKEN[];
33  extern AWS_CORE_API const char ACCEPT_HEADER[];
34  extern AWS_CORE_API const char ACCEPT_CHAR_SET_HEADER[];
35  extern AWS_CORE_API const char ACCEPT_ENCODING_HEADER[];
36  extern AWS_CORE_API const char AUTHORIZATION_HEADER[];
37  extern AWS_CORE_API const char AWS_AUTHORIZATION_HEADER[];
38  extern AWS_CORE_API const char COOKIE_HEADER[];
39  extern AWS_CORE_API const char CONTENT_LENGTH_HEADER[];
40  extern AWS_CORE_API const char CONTENT_TYPE_HEADER[];
41  extern AWS_CORE_API const char TRANSFER_ENCODING_HEADER[];
42  extern AWS_CORE_API const char USER_AGENT_HEADER[];
43  extern AWS_CORE_API const char VIA_HEADER[];
44  extern AWS_CORE_API const char HOST_HEADER[];
45  extern AWS_CORE_API const char AMZ_TARGET_HEADER[];
46  extern AWS_CORE_API const char X_AMZ_EXPIRES_HEADER[];
47  extern AWS_CORE_API const char CONTENT_MD5_HEADER[];
48  extern AWS_CORE_API const char API_VERSION_HEADER[];
49  extern AWS_CORE_API const char SDK_INVOCATION_ID_HEADER[];
50  extern AWS_CORE_API const char SDK_REQUEST_HEADER[];
51  extern AWS_CORE_API const char CHUNKED_VALUE[];
52 
53  class HttpRequest;
54  class HttpResponse;
55 
59  typedef std::function<void(const HttpRequest*, HttpResponse*, long long)> DataReceivedEventHandler;
63  typedef std::function<void(const HttpRequest*, long long)> DataSentEventHandler;
67  typedef std::function<bool(const HttpRequest*)> ContinueRequestHandler;
68 
73  {
74  public:
78  HttpRequest(const URI& uri, HttpMethod method) :
79  m_uri(uri), m_method(method), m_isEvenStreamRequest(false)
80  {}
81 
82  virtual ~HttpRequest() {}
83 
87  virtual HeaderValueCollection GetHeaders() const = 0;
91  virtual const Aws::String& GetHeaderValue(const char* headerName) const = 0;
95  virtual void SetHeaderValue(const char* headerName, const Aws::String& headerValue) = 0;
99  virtual void SetHeaderValue(const Aws::String& headerName, const Aws::String& headerValue) = 0;
103  virtual void DeleteHeader(const char* headerName) = 0;
107  virtual void AddContentBody(const std::shared_ptr<Aws::IOStream>& strContent) = 0;
111  virtual const std::shared_ptr<Aws::IOStream>& GetContentBody() const = 0;
115  virtual bool HasHeader(const char* name) const = 0;
119  virtual int64_t GetSize() const = 0;
123  virtual const Aws::IOStreamFactory& GetResponseStreamFactory() const = 0;
127  virtual void SetResponseStreamFactory(const Aws::IOStreamFactory& factory) = 0;
131  inline URI& GetUri()
132  {
133  return m_uri;
134  }
138  const URI& GetUri() const { return m_uri; }
143  inline Aws::String GetURIString(bool includeQueryString = true) const
144  {
145  return m_uri.GetURIString(includeQueryString);
146  }
150  inline HttpMethod GetMethod() const
151  {
152  return m_method;
153  }
157  inline const Aws::String& GetQueryString() const
158  {
159  return m_uri.GetQueryString();
160  }
164  inline void CanonicalizeRequest()
165  {
166  m_uri.CanonicalizeQueryString();
167  }
172  {
173  return m_uri.GetQueryStringParameters();
174  }
178  inline void AddQueryStringParameter(const char* key, const Aws::String& value)
179  {
180  m_uri.AddQueryStringParameter(key, value);
181  }
182 
183  inline bool HasDate() const
184  {
185  return HasHeader(DATE_HEADER);
186  }
190  inline const Aws::String& GetDate() const
191  {
192  return GetHeaderValue(DATE_HEADER);
193  }
197  inline void SetDate(const Aws::String& value)
198  {
199  SetHeaderValue(DATE_HEADER, value);
200  }
201 
202  inline bool HasAccept() const
203  {
204  return HasHeader(ACCEPT_HEADER);
205  }
209  inline const Aws::String& GetAccept() const
210  {
211  return GetHeaderValue(ACCEPT_HEADER);
212  }
216  inline void SetAccept(const Aws::String& value)
217  {
218  SetHeaderValue(ACCEPT_HEADER, value);
219  }
220 
221  inline bool HasAcceptCharSet() const
222  {
223  return HasHeader(ACCEPT_CHAR_SET_HEADER);
224  }
228  inline const Aws::String& GetAcceptCharSet() const
229  {
230  return GetHeaderValue(ACCEPT_CHAR_SET_HEADER);
231  }
235  inline void SetAcceptCharSet(const Aws::String& value)
236  {
237  SetHeaderValue(ACCEPT_CHAR_SET_HEADER, value);
238  }
239 
240  inline bool HasAcceptEncoding() const
241  {
242  return HasHeader(ACCEPT_ENCODING_HEADER);
243  }
247  inline const Aws::String& GetAcceptEncoding() const
248  {
249  return GetHeaderValue(ACCEPT_ENCODING_HEADER);
250  }
254  inline void SetAcceptEncoding(const Aws::String& value)
255  {
256  SetHeaderValue(ACCEPT_ENCODING_HEADER, value);
257  }
258 
259  inline bool HasAuthorization() const
260  {
261  return HasHeader(AUTHORIZATION_HEADER);
262  }
266  inline const Aws::String& GetAuthorization() const
267  {
268  return GetHeaderValue(AUTHORIZATION_HEADER);
269  }
273  inline void SetAuthorization(const Aws::String& value)
274  {
275  SetHeaderValue(AUTHORIZATION_HEADER, value);
276  }
277 
278  inline bool HasAwsAuthorization() const
279  {
280  return HasHeader(AWS_AUTHORIZATION_HEADER);
281  }
285  inline const Aws::String& GetAwsAuthorization() const
286  {
287  return GetHeaderValue(AWS_AUTHORIZATION_HEADER);
288  }
292  inline void SetAwsAuthorization(const Aws::String& value)
293  {
294  SetHeaderValue(AWS_AUTHORIZATION_HEADER, value);
295  }
296 
297  inline bool HasAwsSessionToken() const
298  {
299  return HasHeader(AWS_SECURITY_TOKEN);
300  }
304  inline const Aws::String& GetAwsSessionToken() const
305  {
306  return GetHeaderValue(AWS_SECURITY_TOKEN);
307  }
311  inline void SetAwsSessionToken(const Aws::String& value)
312  {
313  SetHeaderValue(AWS_SECURITY_TOKEN, value);
314  }
315 
316  inline bool HasCookie() const
317  {
318  return HasHeader(COOKIE_HEADER);
319  }
323  inline const Aws::String& GetCookie() const
324  {
325  return GetHeaderValue(COOKIE_HEADER);
326  }
330  inline void SetCookie(const Aws::String& value)
331  {
332  SetHeaderValue(COOKIE_HEADER, value);
333  }
334 
335  inline bool HasContentLength() const
336  {
337  return HasHeader(CONTENT_LENGTH_HEADER);
338  }
342  inline const Aws::String& GetContentLength() const
343  {
344  return GetHeaderValue(CONTENT_LENGTH_HEADER);
345  }
349  inline void SetContentLength(const Aws::String& value)
350  {
351  SetHeaderValue(CONTENT_LENGTH_HEADER, value);
352  }
353 
354  inline bool HasContentType() const
355  {
356  return HasHeader(CONTENT_TYPE_HEADER);
357  }
361  inline const Aws::String& GetContentType() const
362  {
363  return GetHeaderValue(CONTENT_TYPE_HEADER);
364  }
368  inline void SetContentType(const Aws::String& value)
369  {
370  SetHeaderValue(CONTENT_TYPE_HEADER, value);
371  }
372 
373  inline bool HasTransferEncoding() const
374  {
375  return HasHeader(TRANSFER_ENCODING_HEADER);
376  }
380  inline const Aws::String& GetTransferEncoding() const
381  {
382  return GetHeaderValue(TRANSFER_ENCODING_HEADER);
383  }
387  inline void SetTransferEncoding(const Aws::String& value)
388  {
389  SetHeaderValue(TRANSFER_ENCODING_HEADER, value);
390  }
391 
392  inline bool HasUserAgent() const
393  {
394  return HasHeader(USER_AGENT_HEADER);
395  }
399  inline const Aws::String& GetUserAgent() const
400  {
401  return GetHeaderValue(USER_AGENT_HEADER);
402  }
406  inline void SetUserAgent(const Aws::String& value)
407  {
408  SetHeaderValue(USER_AGENT_HEADER, value);
409  }
410 
411  inline bool HasVia() const
412  {
413  return HasHeader(VIA_HEADER);
414  }
418  inline const Aws::String& GetVia() const
419  {
420  return GetHeaderValue(VIA_HEADER);
421  }
425  inline void SetVia(const Aws::String& value)
426  {
427  SetHeaderValue(VIA_HEADER, value);
428  }
429 
433  inline bool HasApiVersion() const
434  {
435  return HasHeader(API_VERSION_HEADER);
436  }
437 
441  inline const Aws::String& GetApiVersion() const
442  {
443  return GetHeaderValue(API_VERSION_HEADER);
444  }
448  inline void SetApiVersion(const Aws::String& value)
449  {
450  SetHeaderValue(API_VERSION_HEADER, value);
451  }
452 
456  inline void SetDataReceivedEventHandler(const DataReceivedEventHandler& dataReceivedEventHandler) { m_onDataReceived = dataReceivedEventHandler; }
460  inline void SetDataReceivedEventHandler(DataReceivedEventHandler&& dataReceivedEventHandler) { m_onDataReceived = std::move(dataReceivedEventHandler); }
464  inline void SetDataSentEventHandler(const DataSentEventHandler& dataSentEventHandler) { m_onDataSent = dataSentEventHandler; }
468  inline void SetDataSentEventHandler(DataSentEventHandler&& dataSentEventHandler) { m_onDataSent = std::move(dataSentEventHandler); }
472  inline void SetContinueRequestHandle(const ContinueRequestHandler& continueRequestHandler) { m_continueRequest = continueRequestHandler; }
476  inline void SetContinueRequestHandle(ContinueRequestHandler&& continueRequestHandler) { m_continueRequest = std::move(continueRequestHandler); }
477 
481  inline const DataReceivedEventHandler& GetDataReceivedEventHandler() const { return m_onDataReceived; }
485  inline const DataSentEventHandler& GetDataSentEventHandler() const { return m_onDataSent; }
486 
487  inline const ContinueRequestHandler& GetContinueRequestHandler() const { return m_continueRequest; }
488 
492  inline const Aws::String& GetSigningAccessKey() const { return m_signingAccessKey; }
496  inline void SetSigningAccessKey(const Aws::String& accessKey) { m_signingAccessKey = accessKey; }
497 
501  inline const Aws::String& GetSigningRegion() const { return m_signingRegion; }
505  inline void SetSigningRegion(const Aws::String& region) { m_signingRegion = region; }
506 
512  virtual void AddRequestMetric(const Aws::String& key, int64_t value) { m_httpRequestMetrics.emplace(key, value); }
513 
517  virtual void SetRequestMetrics(const Aws::Monitoring::HttpClientMetricsCollection& collection) { m_httpRequestMetrics = collection; }
518 
522  virtual const Aws::Monitoring::HttpClientMetricsCollection& GetRequestMetrics() const { return m_httpRequestMetrics; }
523 
530  Aws::String GetResolvedRemoteHost() const { return m_resolvedRemoteHost; }
531  void SetResolvedRemoteHost(const Aws::String& ip) { m_resolvedRemoteHost = ip; }
532 
533  bool IsEventStreamRequest() { return m_isEvenStreamRequest; }
534  void SetEventStreamRequest(bool eventStreamRequest) { m_isEvenStreamRequest = eventStreamRequest; }
535 
536  virtual std::shared_ptr<Aws::Crt::Http::HttpRequest> ToCrtHttpRequest();
537  private:
538  URI m_uri;
539  HttpMethod m_method;
540  bool m_isEvenStreamRequest;
541  DataReceivedEventHandler m_onDataReceived;
542  DataSentEventHandler m_onDataSent;
543  ContinueRequestHandler m_continueRequest;
544  Aws::String m_signingRegion;
545  Aws::String m_signingAccessKey;
546  Aws::String m_resolvedRemoteHost;
548  };
549 
550  } // namespace Http
551 } // namespace Aws
Aws::Http::HttpRequest::HasAcceptEncoding
bool HasAcceptEncoding() const
Definition: HttpRequest.h:240
Aws::Http::AWS_AUTHORIZATION_HEADER
AWS_CORE_API const char AWS_AUTHORIZATION_HEADER[]
Aws::Http::HttpRequest::SetContentLength
void SetContentLength(const Aws::String &value)
Definition: HttpRequest.h:349
Aws::Http::HttpRequest::HasAccept
bool HasAccept() const
Definition: HttpRequest.h:202
Aws::Http::HttpRequest::SetDate
void SetDate(const Aws::String &value)
Definition: HttpRequest.h:197
Aws::Http::URI
Definition: URI.h:32
Aws::Http::HttpRequest::HasUserAgent
bool HasUserAgent() const
Definition: HttpRequest.h:392
Aws::Http::HOST_HEADER
AWS_CORE_API const char HOST_HEADER[]
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Http::HttpRequest::HasApiVersion
bool HasApiVersion() const
Definition: HttpRequest.h:433
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Http::HttpRequest::GetHeaders
virtual HeaderValueCollection GetHeaders() const =0
Aws::Http::HttpRequest::GetUserAgent
const Aws::String & GetUserAgent() const
Definition: HttpRequest.h:399
Aws::Http::HttpRequest::GetQueryStringParameters
QueryStringParameterCollection GetQueryStringParameters() const
Definition: HttpRequest.h:171
Aws::Http::HttpRequest
Definition: HttpRequest.h:73
Aws::Http::X_AMZ_EXPIRES_HEADER
AWS_CORE_API const char X_AMZ_EXPIRES_HEADER[]
Aws::Http::HttpRequest::SetVia
void SetVia(const Aws::String &value)
Definition: HttpRequest.h:425
Aws::Http::HttpMethod
HttpMethod
Definition: HttpTypes.h:24
Aws::Http::HttpResponse
Definition: HttpResponse.h:132
Aws::Http::HttpRequest::SetApiVersion
void SetApiVersion(const Aws::String &value)
Definition: HttpRequest.h:448
Aws::Http::HttpRequest::GetAwsSessionToken
const Aws::String & GetAwsSessionToken() const
Definition: HttpRequest.h:304
Aws::Http::HttpRequest::SetDataSentEventHandler
void SetDataSentEventHandler(const DataSentEventHandler &dataSentEventHandler)
Definition: HttpRequest.h:464
Aws::Http::ACCEPT_HEADER
AWS_CORE_API const char ACCEPT_HEADER[]
Aws::Http::HttpRequest::HasDate
bool HasDate() const
Definition: HttpRequest.h:183
Aws::Http::HttpRequest::GetTransferEncoding
const Aws::String & GetTransferEncoding() const
Definition: HttpRequest.h:380
Aws::Http::HttpRequest::HasHeader
virtual bool HasHeader(const char *name) const =0
Aws::Http::HttpRequest::GetDataReceivedEventHandler
const DataReceivedEventHandler & GetDataReceivedEventHandler() const
Definition: HttpRequest.h:481
Aws::Http::HttpRequest::SetContinueRequestHandle
void SetContinueRequestHandle(const ContinueRequestHandler &continueRequestHandler)
Definition: HttpRequest.h:472
Aws::Http::HttpRequest::AddRequestMetric
virtual void AddRequestMetric(const Aws::String &key, int64_t value)
Definition: HttpRequest.h:512
Aws::Http::HttpRequest::GetDataSentEventHandler
const DataSentEventHandler & GetDataSentEventHandler() const
Definition: HttpRequest.h:485
Aws::Http::AWS_SECURITY_TOKEN
AWS_CORE_API const char AWS_SECURITY_TOKEN[]
Aws::Http::HttpRequest::~HttpRequest
virtual ~HttpRequest()
Definition: HttpRequest.h:82
URI.h
Aws::Http::CONTENT_TYPE_HEADER
AWS_CORE_API const char CONTENT_TYPE_HEADER[]
Aws::Http::HttpRequest::SetAccept
void SetAccept(const Aws::String &value)
Definition: HttpRequest.h:216
Aws::Http::HttpRequest::GetSize
virtual int64_t GetSize() const =0
Aws::Monitoring::HttpClientMetricsCollection
Aws::Map< Aws::String, int64_t > HttpClientMetricsCollection
Definition: HttpClientMetrics.h:78
Aws::Http::ACCEPT_CHAR_SET_HEADER
AWS_CORE_API const char ACCEPT_CHAR_SET_HEADER[]
Aws::Http::HttpRequest::SetSigningAccessKey
void SetSigningAccessKey(const Aws::String &accessKey)
Definition: HttpRequest.h:496
AWSStreamFwd.h
Aws::Http::HttpRequest::GetContentType
const Aws::String & GetContentType() const
Definition: HttpRequest.h:361
Aws::Http::HttpRequest::SetResolvedRemoteHost
void SetResolvedRemoteHost(const Aws::String &ip)
Definition: HttpRequest.h:531
Aws::Http::DataSentEventHandler
std::function< void(const HttpRequest *, long long)> DataSentEventHandler
Definition: HttpRequest.h:63
Aws::Http::HttpRequest::HttpRequest
HttpRequest(const URI &uri, HttpMethod method)
Definition: HttpRequest.h:78
Aws::Http::HttpRequest::GetVia
const Aws::String & GetVia() const
Definition: HttpRequest.h:418
Aws::Http::HttpRequest::GetSigningRegion
const Aws::String & GetSigningRegion() const
Definition: HttpRequest.h:501
Aws::Http::HttpRequest::HasAuthorization
bool HasAuthorization() const
Definition: HttpRequest.h:259
Aws::Http::HttpRequest::GetContentBody
virtual const std::shared_ptr< Aws::IOStream > & GetContentBody() const =0
Aws::Http::HttpRequest::DeleteHeader
virtual void DeleteHeader(const char *headerName)=0
Aws::Http::HttpRequest::SetDataSentEventHandler
void SetDataSentEventHandler(DataSentEventHandler &&dataSentEventHandler)
Definition: HttpRequest.h:468
Aws::Http::HttpRequest::GetApiVersion
const Aws::String & GetApiVersion() const
Definition: HttpRequest.h:441
Aws::Http::ACCEPT_ENCODING_HEADER
AWS_CORE_API const char ACCEPT_ENCODING_HEADER[]
Aws::Http::HttpRequest::SetSigningRegion
void SetSigningRegion(const Aws::String &region)
Definition: HttpRequest.h:505
Aws::Http::HttpRequest::GetRequestMetrics
virtual const Aws::Monitoring::HttpClientMetricsCollection & GetRequestMetrics() const
Definition: HttpRequest.h:522
Aws::Http::QueryStringParameterCollection
Aws::MultiMap< Aws::String, Aws::String > QueryStringParameterCollection
Definition: URI.h:26
Aws::Http::TRANSFER_ENCODING_HEADER
AWS_CORE_API const char TRANSFER_ENCODING_HEADER[]
Aws::Http::SDK_INVOCATION_ID_HEADER
AWS_CORE_API const char SDK_INVOCATION_ID_HEADER[]
Aws::Http::HttpRequest::SetEventStreamRequest
void SetEventStreamRequest(bool eventStreamRequest)
Definition: HttpRequest.h:534
Aws::Http::HttpRequest::GetDate
const Aws::String & GetDate() const
Definition: HttpRequest.h:190
Aws::Http::CHUNKED_VALUE
AWS_CORE_API const char CHUNKED_VALUE[]
Aws::Http::HttpRequest::SetAwsSessionToken
void SetAwsSessionToken(const Aws::String &value)
Definition: HttpRequest.h:311
Aws::Http::HttpRequest::HasCookie
bool HasCookie() const
Definition: HttpRequest.h:316
Aws::Http::HttpRequest::HasAcceptCharSet
bool HasAcceptCharSet() const
Definition: HttpRequest.h:221
Aws::Http::HttpRequest::GetCookie
const Aws::String & GetCookie() const
Definition: HttpRequest.h:323
Aws::Http::CONTENT_MD5_HEADER
AWS_CORE_API const char CONTENT_MD5_HEADER[]
Aws::Http::HttpRequest::GetAcceptCharSet
const Aws::String & GetAcceptCharSet() const
Definition: HttpRequest.h:228
Aws::Http::HttpRequest::HasVia
bool HasVia() const
Definition: HttpRequest.h:411
Aws::Http::HttpRequest::GetResolvedRemoteHost
Aws::String GetResolvedRemoteHost() const
Definition: HttpRequest.h:530
Aws::Http::HttpRequest::HasContentType
bool HasContentType() const
Definition: HttpRequest.h:354
Aws::Http::HttpRequest::SetAcceptCharSet
void SetAcceptCharSet(const Aws::String &value)
Definition: HttpRequest.h:235
Aws::Http::HttpRequest::HasTransferEncoding
bool HasTransferEncoding() const
Definition: HttpRequest.h:373
Aws::Http::HttpRequest::GetAccept
const Aws::String & GetAccept() const
Definition: HttpRequest.h:209
Aws::Http::HttpRequest::GetAwsAuthorization
const Aws::String & GetAwsAuthorization() const
Definition: HttpRequest.h:285
Aws::Http::HttpRequest::SetResponseStreamFactory
virtual void SetResponseStreamFactory(const Aws::IOStreamFactory &factory)=0
Aws::Http::HttpRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: HttpRequest.h:157
Aws::Http::HttpRequest::GetAcceptEncoding
const Aws::String & GetAcceptEncoding() const
Definition: HttpRequest.h:247
Aws::Http::HttpRequest::SetAcceptEncoding
void SetAcceptEncoding(const Aws::String &value)
Definition: HttpRequest.h:254
Aws::Http::HttpRequest::SetDataReceivedEventHandler
void SetDataReceivedEventHandler(const DataReceivedEventHandler &dataReceivedEventHandler)
Definition: HttpRequest.h:456
Aws::Http::HttpRequest::AddContentBody
virtual void AddContentBody(const std::shared_ptr< Aws::IOStream > &strContent)=0
Aws::Http::HttpRequest::GetURIString
Aws::String GetURIString(bool includeQueryString=true) const
Definition: HttpRequest.h:143
Aws::Http::VIA_HEADER
AWS_CORE_API const char VIA_HEADER[]
Aws::Http::HttpRequest::SetDataReceivedEventHandler
void SetDataReceivedEventHandler(DataReceivedEventHandler &&dataReceivedEventHandler)
Definition: HttpRequest.h:460
Aws::Http::HttpRequest::CanonicalizeRequest
void CanonicalizeRequest()
Definition: HttpRequest.h:164
Aws::Http::HttpRequest::GetContinueRequestHandler
const ContinueRequestHandler & GetContinueRequestHandler() const
Definition: HttpRequest.h:487
HttpClientMetrics.h
Aws::Http::HttpRequest::GetResponseStreamFactory
virtual const Aws::IOStreamFactory & GetResponseStreamFactory() const =0
Core_EXPORTS.h
Aws::Http::HttpRequest::IsEventStreamRequest
bool IsEventStreamRequest()
Definition: HttpRequest.h:533
Aws::Http::COOKIE_HEADER
AWS_CORE_API const char COOKIE_HEADER[]
Aws::Http::HttpRequest::SetUserAgent
void SetUserAgent(const Aws::String &value)
Definition: HttpRequest.h:406
Aws
Definition: AccessManagementClient.h:15
Aws::IOStreamFactory
std::function< Aws::IOStream *(void) > IOStreamFactory
Definition: AWSStreamFwd.h:25
HttpTypes.h
Aws::Http::HttpRequest::GetHeaderValue
virtual const Aws::String & GetHeaderValue(const char *headerName) const =0
Aws::Http::USER_AGENT_HEADER
AWS_CORE_API const char USER_AGENT_HEADER[]
Aws::Http::AUTHORIZATION_HEADER
AWS_CORE_API const char AUTHORIZATION_HEADER[]
AWSMemory.h
Aws::Http::HttpRequest::GetUri
URI & GetUri()
Definition: HttpRequest.h:131
Aws::Http::HttpRequest::SetRequestMetrics
virtual void SetRequestMetrics(const Aws::Monitoring::HttpClientMetricsCollection &collection)
Definition: HttpRequest.h:517
Aws::Http::HttpRequest::GetSigningAccessKey
const Aws::String & GetSigningAccessKey() const
Definition: HttpRequest.h:492
Aws::Http::HttpRequest::SetCookie
void SetCookie(const Aws::String &value)
Definition: HttpRequest.h:330
Aws::Http::DataReceivedEventHandler
std::function< void(const HttpRequest *, HttpResponse *, long long)> DataReceivedEventHandler
Definition: HttpRequest.h:54
Aws::Http::HttpRequest::GetMethod
HttpMethod GetMethod() const
Definition: HttpRequest.h:150
Aws::Http::CONTENT_LENGTH_HEADER
AWS_CORE_API const char CONTENT_LENGTH_HEADER[]
Aws::Http::HttpRequest::SetContentType
void SetContentType(const Aws::String &value)
Definition: HttpRequest.h:368
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Http::HttpRequest::AddQueryStringParameter
void AddQueryStringParameter(const char *key, const Aws::String &value)
Definition: HttpRequest.h:178
Aws::Http::DATE_HEADER
AWS_CORE_API const char DATE_HEADER[]
Aws::Http::HttpRequest::SetTransferEncoding
void SetTransferEncoding(const Aws::String &value)
Definition: HttpRequest.h:387
Aws::Http::HttpRequest::HasContentLength
bool HasContentLength() const
Definition: HttpRequest.h:335
Aws::Http::HttpRequest::SetHeaderValue
virtual void SetHeaderValue(const char *headerName, const Aws::String &headerValue)=0
Aws::Http::ContinueRequestHandler
std::function< bool(const HttpRequest *)> ContinueRequestHandler
Definition: HttpRequest.h:67
Aws::Http::AWS_DATE_HEADER
AWS_CORE_API const char AWS_DATE_HEADER[]
Aws::Http::API_VERSION_HEADER
AWS_CORE_API const char API_VERSION_HEADER[]
Aws::Http::SDK_REQUEST_HEADER
AWS_CORE_API const char SDK_REQUEST_HEADER[]
ResponseStream.h
Aws::Http::HttpRequest::SetContinueRequestHandle
void SetContinueRequestHandle(ContinueRequestHandler &&continueRequestHandler)
Definition: HttpRequest.h:476
Aws::Http::HttpRequest::SetAwsAuthorization
void SetAwsAuthorization(const Aws::String &value)
Definition: HttpRequest.h:292
Aws::Http::HttpRequest::HasAwsAuthorization
bool HasAwsAuthorization() const
Definition: HttpRequest.h:278
Aws::Http::HttpRequest::GetContentLength
const Aws::String & GetContentLength() const
Definition: HttpRequest.h:342
Aws::Http::HttpRequest::HasAwsSessionToken
bool HasAwsSessionToken() const
Definition: HttpRequest.h:297
Aws::Http::HttpRequest::GetUri
const URI & GetUri() const
Definition: HttpRequest.h:138
Aws::Http::HttpRequest::SetHeaderValue
virtual void SetHeaderValue(const Aws::String &headerName, const Aws::String &headerValue)=0
Aws::Http::AMZ_TARGET_HEADER
AWS_CORE_API const char AMZ_TARGET_HEADER[]
Aws::Http::HttpRequest::GetAuthorization
const Aws::String & GetAuthorization() const
Definition: HttpRequest.h:266
Aws::Http::HttpRequest::ToCrtHttpRequest
virtual std::shared_ptr< Aws::Crt::Http::HttpRequest > ToCrtHttpRequest()
Aws::Http::HttpRequest::SetAuthorization
void SetAuthorization(const Aws::String &value)
Definition: HttpRequest.h:273