|
aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <S3.h>
Public Member Functions | |
| S3MetaRequest (const S3MetaRequest &)=delete | |
| S3MetaRequest (S3MetaRequest &&)=delete | |
| S3MetaRequest & | operator= (const S3MetaRequest &)=delete |
| S3MetaRequest & | operator= (S3MetaRequest &&)=delete |
| ~S3MetaRequest () noexcept=default | |
| void | Cancel () noexcept |
| void | IncrementReadWindow (uint64_t bytes) noexcept |
| std::future< int > | Write (ByteCursor data, bool eof) noexcept |
| int | LastError () const noexcept |
Handle to a single in-flight or recently-completed meta request, obtained from S3Client::MakeMetaRequest. Callbacks continue to fire correctly even if the caller drops their shared_ptr: the CRT's callback bundle keeps its own reference until shutdown.
|
delete |
|
delete |
|
defaultnoexcept |
|
noexcept |
Request cancellation of the in-flight meta request. The CRT cancels asynchronously; the finish and shutdown callbacks will still fire to signal final teardown.
Move the flow-control read window forward by the given number of bytes. Only meaningful when the client was configured with read backpressure (S3ClientConfig::SetReadBackpressure): the CRT pauses delivering body data once the window is exhausted, and the application must call this to let more data flow. A typical pattern is to increment by the size of each chunk once it has been consumed.
| bytes | number of bytes to add to the read window. |
|
noexcept |
|
delete |
|
delete |
|
noexcept |
Write the next chunk of body data for an async-writes PUT (see S3PutObjectMetaRequestOptions::CreateWithAsyncWrites). The returned future completes with the CRT error code (0 on success) once the CRT is ready to accept more data. You MUST NOT call Write again until the previous call's future has completed. Pass eof=true for the final chunk and do not call Write again afterward.
| data | the chunk of body bytes to send; may be any size. |
| eof | true if this is the final chunk. |