|
aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <S3.h>
Static Public Member Functions | |
| static ScopedResource< S3MetaRequestOptions > | Create (const std::shared_ptr< Http::HttpRequest > &request, BodyCallback cb) noexcept |
| static ScopedResource< S3MetaRequestOptions > | Create (const std::shared_ptr< Http::HttpRequest > &request, BodyCallbackEx cb) noexcept |
| static ScopedResource< S3MetaRequestOptions > | Create (const std::shared_ptr< Http::HttpRequest > &request, const Crt::String &recvFilepath) noexcept |
Additional Inherited Members | |
Public Types inherited from Aws::Crt::S3::S3MetaRequestOptions | |
| using | BodyCallback = std::function< bool(ByteCursor body, uint64_t rangeStart)> |
| using | BodyCallbackEx = std::function< bool(ByteCursor body, uint64_t rangeStart, S3BufferTicket &ticket)> |
| using | HeadersCallback = std::function< bool(const Vector< Http::HttpHeader > &headers, int responseStatus)> |
| using | ProgressCallback = std::function< void(uint64_t bytesTransferred, uint64_t contentLength)> |
| using | FinishCallback = std::function< void(const S3MetaRequestResult &result)> |
| using | ShutdownCallback = std::function< void()> |
Protected Member Functions inherited from Aws::Crt::S3::S3MetaRequestOptions | |
| S3MetaRequestOptions (S3MetaRequestType type, const std::shared_ptr< Http::HttpRequest > &request) noexcept | |
Protected Attributes inherited from Aws::Crt::S3::S3MetaRequestOptions | |
| ScopedResource< Impl > | m_impl |
| std::shared_ptr< Http::HttpRequest > | m_httpRequest |
| String | m_operationName |
| String | m_sendFilepath |
| String | m_recvFilepath |
| aws_uri | m_endpoint |
| bool | m_endpointInit |
| Optional< uint64_t > | m_objectSizeHint |
| BodyCallback | m_bodyCb |
| BodyCallbackEx | m_bodyCbEx |
| HeadersCallback | m_headersCb |
| ProgressCallback | m_progressCb |
| FinishCallback | m_finishCb |
| ShutdownCallback | m_shutdownCb |
| int | m_lastError = AWS_ERROR_SUCCESS |
Options for a GetObject meta request. Every download must land somewhere; the three Create overloads pin the delivery path at construction and make it impossible to submit a GetObject that silently drops the body. Which sink is used is determined by the argument type: a BodyCallback, a BodyCallbackEx, or a destination file path.
|
delete |
|
delete |
|
staticnoexcept |
Build options that deliver body chunks through a caller-owned BodyCallback.
| request | the prepared HTTP request. |
| cb | the body callback to invoke for each chunk. |
|
staticnoexcept |
Build options that deliver body chunks through a caller-owned zero-copy BodyCallbackEx, which receives a borrowed S3BufferTicket for each chunk.
| request | the prepared HTTP request. |
| cb | the zero-copy body callback. |
|
staticnoexcept |
Build options that stream the response body directly to a file on disk. Neither BodyCallback nor BodyCallbackEx fires when this overload is used.
| request | the prepared HTTP request. |
| recvFilepath | destination file path. |
|
delete |
|
delete |
1.8.10