Skip to content

Commit 6b4c372

Browse files
committed
Clarify body buffered when chunk_size set to None
This commit addresses #4504 (comment)
1 parent 1cca028 commit 6b4c372

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.changelog/1769635097.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let client = aws_sdk_s3::Client::from_conf(config);
2323
```
2424

2525
```
26-
// Disable chunking (send entire content as one chunk)
26+
// Disable chunking (buffers entire body in memory and sends it as one chunk)
2727
let config = aws_sdk_s3::Config::builder()
2828
.chunk_size(None)
2929
.build();

aws/codegen-aws-sdk/src/main/kotlin/software/amazon/smithy/rustsdk/AwsChunkedContentEncodingDecorator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private class AwsChunkedConfigCustomization(
105105
/// ## }
106106
/// ```
107107
///
108-
/// ## Example - No chunking
108+
/// ## Example - No chunking (buffers entire body in memory)
109109
/// ```no_run
110110
/// ## use aws_sdk_s3::{Client, Config};
111111
/// ## async fn example(client: Client) -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)