AWS SDK for C++
0.12.9
AWS SDK for C++
|
#include <HttpRequest.h>
Public Member Functions | |
HttpRequest (const URI &uri, HttpMethod method) | |
virtual | ~HttpRequest () |
virtual HeaderValueCollection | GetHeaders () const =0 |
virtual const Aws::String & | GetHeaderValue (const char *headerName) const =0 |
virtual void | SetHeaderValue (const char *headerName, const Aws::String &headerValue)=0 |
virtual void | SetHeaderValue (const Aws::String &headerName, const Aws::String &headerValue)=0 |
virtual void | DeleteHeader (const char *headerName)=0 |
virtual void | AddContentBody (const std::shared_ptr< Aws::IOStream > &strContent)=0 |
virtual const std::shared_ptr< Aws::IOStream > & | GetContentBody () const =0 |
virtual bool | HasHeader (const char *name) const =0 |
virtual int64_t | GetSize () const =0 |
virtual const Aws::IOStreamFactory & | GetResponseStreamFactory () const =0 |
virtual void | SetResponseStreamFactory (const Aws::IOStreamFactory &factory)=0 |
URI & | GetUri () |
const URI & | GetUri () const |
Aws::String | GetURIString (bool includeQueryString=true) const |
HttpMethod | GetMethod () const |
const Aws::String & | GetQueryString () const |
void | CanonicalizeRequest () |
QueryStringParameterCollection | GetQueryStringParameters () const |
void | AddQueryStringParameter (const char *key, const Aws::String &value) |
const Aws::String & | GetDate () const |
void | SetDate (const Aws::String &value) |
const Aws::String & | GetAccept () const |
void | SetAccept (const Aws::String &value) |
const Aws::String & | GetAcceptCharSet () const |
void | SetAcceptCharSet (const Aws::String &value) |
const Aws::String & | GetAcceptEncoding () const |
void | SetAcceptEncoding (const Aws::String &value) |
const Aws::String & | GetAuthorization () const |
void | SetAuthorization (const Aws::String &value) |
const Aws::String & | GetAwsAuthorization () const |
void | SetAwsAuthorization (const Aws::String &value) |
const Aws::String & | GetAwsSessionToken () const |
void | SetAwsSessionToken (const Aws::String &value) |
const Aws::String & | GetCookie () const |
void | SetCookie (const Aws::String &value) |
const Aws::String & | GetContentLength () const |
void | SetContentLength (const Aws::String &value) |
const Aws::String & | GetContentType () const |
void | SetContentType (const Aws::String &value) |
const Aws::String & | GetUserAgent () const |
void | SetUserAgent (const Aws::String &value) |
const Aws::String & | GetVia () const |
void | SetVia (const Aws::String &value) |
void | SetDataReceivedEventHandler (const DataReceivedEventHandler &dataReceivedEventHandler) |
void | SetDataReceivedEventHandler (DataReceivedEventHandler &&dataReceivedEventHandler) |
void | SetDataSentEventHandler (const DataSentEventHandler &dataSentEventHandler) |
void | SetDataSentEventHandler (DataSentEventHandler &&dataSentEventHandler) |
const DataReceivedEventHandler & | GetDataReceivedEventHandler () const |
const DataSentEventHandler & | GetDataSentEventHandler () const |
Abstract class for representing an HttpRequest.
Definition at line 65 of file HttpRequest.h.
|
inline |
Initializes an HttpRequest object with uri and http method.
Definition at line 71 of file HttpRequest.h.
|
inlinevirtual |
Definition at line 75 of file HttpRequest.h.
|
pure virtual |
Adds a content body stream to the request. This stream will be used to send the body to the endpoint.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Adds a query string parameter to the underlying URI by key and value.
Definition at line 171 of file HttpRequest.h.
|
inline |
Normalizes the URI for use with signing.
Definition at line 157 of file HttpRequest.h.
|
pure virtual |
Deletes a header from the request by name.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Gets accept header.
Definition at line 193 of file HttpRequest.h.
|
inline |
Gets Accept CharSet header.
Definition at line 207 of file HttpRequest.h.
|
inline |
Gets accept encoding header.
Definition at line 221 of file HttpRequest.h.
|
inline |
Gets authorization encoding header.
Definition at line 235 of file HttpRequest.h.
|
inline |
Gets aws authorization header.
Definition at line 249 of file HttpRequest.h.
|
inline |
Gets session token header.
Definition at line 263 of file HttpRequest.h.
|
pure virtual |
Gets the content body stream that will be used for this request.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Gets content-length header.
Definition at line 291 of file HttpRequest.h.
|
inline |
Gets content-type header.
Definition at line 305 of file HttpRequest.h.
|
inline |
Gets cookie header.
Definition at line 277 of file HttpRequest.h.
|
inline |
Gets the closure for receiving events when data is received from the server.
Definition at line 363 of file HttpRequest.h.
|
inline |
Gets the closure for receiving events when data is sent to the server.
Definition at line 367 of file HttpRequest.h.
|
inline |
Gets date header.
Definition at line 179 of file HttpRequest.h.
|
pure virtual |
Get All headers for this request.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
pure virtual |
Get the value for a Header based on its name.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Get the http method for this request.
Definition at line 143 of file HttpRequest.h.
|
inline |
Gets the query string from the URI on this request.
Definition at line 150 of file HttpRequest.h.
|
inline |
Gets the query string for the underlying URI as a key value mapping
Definition at line 164 of file HttpRequest.h.
|
pure virtual |
Gets the factory for creating the stream that will be used in the http response.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
pure virtual |
Get size in bytes of the request when as it will be going accross the wire.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Gets underlying URI object with mutation access.
Definition at line 124 of file HttpRequest.h.
|
inline |
Gets the underlying URI object.
Definition at line 131 of file HttpRequest.h.
|
inline |
Converts the URI into a string and returns it. If includeQueryString is set to true, the query string will be included in the returned value.
Definition at line 136 of file HttpRequest.h.
|
inline |
Gets User Agent header.
Definition at line 319 of file HttpRequest.h.
|
inline |
Gets via header header.
Definition at line 333 of file HttpRequest.h.
|
pure virtual |
Returns true if a header exists in the request with name
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Gets accept header.
Definition at line 200 of file HttpRequest.h.
|
inline |
Sets Accept CharSet header.
Definition at line 214 of file HttpRequest.h.
|
inline |
Sets accept encoding header.
Definition at line 228 of file HttpRequest.h.
|
inline |
Set authorization header.
Definition at line 242 of file HttpRequest.h.
|
inline |
Sets aws authorization header.
Definition at line 256 of file HttpRequest.h.
|
inline |
Sets session token header.
Definition at line 270 of file HttpRequest.h.
|
inline |
Sets content-length header.
Definition at line 298 of file HttpRequest.h.
|
inline |
sets content-type header.
Definition at line 312 of file HttpRequest.h.
|
inline |
Sets cookie header.
Definition at line 284 of file HttpRequest.h.
|
inline |
Sets the closure for receiving events when data is received from the server.
Definition at line 347 of file HttpRequest.h.
|
inline |
Sets the closure for receiving events when data is received from the server.
Definition at line 351 of file HttpRequest.h.
|
inline |
Sets the closure for receiving events when data is sent to the server.
Definition at line 355 of file HttpRequest.h.
|
inline |
Sets the closure for receiving events when data is sent to the server.
Definition at line 359 of file HttpRequest.h.
|
inline |
Gets date header.
Definition at line 186 of file HttpRequest.h.
|
pure virtual |
Add a header pair
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
pure virtual |
Creates a shared_ptr of HttpRequest with uri, method, and closure for how to create a response stream.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
pure virtual |
Sets the factory for creating the stream that will be used in the http response.
Implemented in Aws::Http::Standard::StandardHttpRequest.
|
inline |
Sets User Agent header.
Definition at line 326 of file HttpRequest.h.
|
inline |
Sets via header.
Definition at line 340 of file HttpRequest.h.