|
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) noexcept |
| static ScopedResource< S3MetaRequestOptions > | Create (const std::shared_ptr< Http::HttpRequest > &request, const Crt::String &sendFilepath) noexcept |
| static ScopedResource< S3MetaRequestOptions > | CreateWithAsyncWrites (const std::shared_ptr< Http::HttpRequest > &request) 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 PutObject meta request. The body source is pinned at construction: either the HTTP request already carries a body stream (via HttpRequest::SetBody), or a source file path is supplied. aws-c-s3 rejects a PUT with no source. Which source is used is determined by whether a source file path is passed.
|
delete |
|
delete |
|
staticnoexcept |
Build options for a PUT whose body is already attached to the HTTP request (via HttpRequest::SetBody).
| request | the prepared HTTP request with body attached. |
|
staticnoexcept |
Build options for a PUT whose body is read from a file on disk. Do NOT also attach a body to the HTTP request - aws-c-s3 rejects requests with more than one body source.
| request | the prepared HTTP request (no body attached). |
| sendFilepath | source file path. |
|
staticnoexcept |
Build options for a PUT whose body is supplied incrementally via S3MetaRequest::Write. Do NOT attach a body to the HTTP request or supply a send filepath - aws-c-s3 rejects more than one body source. The object is uploaded as multipart and the content length need not be known up front.
| request | the prepared HTTP request (no body attached). |
|
delete |
|
delete |
1.8.10