AWS SDK for C++AWS SDK for C++ Version 1.11.791 |
#include <AWSHttpResourceClient.h>
Simple client for accessing the AWS remote data by Http. Currently we use it to access EC2 Metadata and ECS Credential.
Definition at line 33 of file AWSHttpResourceClient.h.
"AWSHttpResourceClient")
Builds an AWSHttpResourceClient instance by using default http stack.
"AWSHttpResourceClient"
Definition at line 83 of file AWSHttpResourceClient.h.
Connects to an HTTP endpoint to read the specified resource and returns the text contents. The resource URI = endpoint + resourcePath (e.g:http://domain/path/to/res)
| endpoint | The HTTP resource to connect to. |
| resourcePath | A path appended to the endpoint to form the final URI. |
| authToken | An optional authorization token that will be passed as the value of the HTTP header 'Authorization'. |
Reimplemented in Aws::Internal::EC2MetadataClient.
Connects to an HTTP endpoint to read the specified resource and returns the text contents. The resource URI = endpoint + resourcePath (e.g:http://domain/path/to/res)
| endpoint | The HTTP resource to connect to. |
| resourcePath | A path appended to the endpoint to form the final URI. |
| authToken | An optional authorization token that will be passed as the value of the HTTP header 'Authorization'. |
Above Function: Aws::String GetResource(const char* endpoint, const char* resourcePath, const char* authToken) const; is limited to HTTP GET method and caller can't add wanted HTTP headers as well. This overload gives caller the flexibility to manipulate the request, as well returns the HttpResponseCode of the last attempt.
Set an error marshaller so as to marshall error type from http response body if any. So that it can work with retry strategy to decide if a request should retry or not.
Definition at line 82 of file AWSHttpResourceClient.h.
Definition at line 86 of file AWSHttpResourceClient.h.
Definition at line 87 of file AWSHttpResourceClient.h.