Skip to content

Conversation

@kuhe
Copy link
Contributor

@kuhe kuhe commented Mar 19, 2025

Adds plugin from smithy-lang/smithy-typescript#1547 as internal UNPUBLISHED package.

import { type HttpDebugLoggingOptions, getHttpDebugLogPlugin } from "@aws-sdk/middleware-http-debug-log";
import { S3 } from "@aws-sdk/client-s3";

const client = new S3({});

// See type {HttpDebugLoggingOptions} for detailed logging options.
// It can be a string, shown here, or object.
const options: HttpDebugLoggingOptions = "header body formatted";
client.middlewareStack.use(getHttpDebugLogPlugin(options));

await client.listBuckets({
  MaxBuckets: 2,
});
// outputs HTTP request and response messages

Example output viewable in smithy-lang/smithy-typescript#1547 and in PR diff.

@kuhe kuhe requested a review from a team as a code owner March 19, 2025 18:39
@kuhe kuhe force-pushed the chore/http-debug branch from a05b063 to 4d90adf Compare March 19, 2025 19:22
@kuhe kuhe merged commit f5b26a6 into aws:main Mar 19, 2025
4 checks passed
@kuhe kuhe deleted the chore/http-debug branch March 19, 2025 20:36
@github-actions
Copy link

github-actions bot commented Apr 3, 2025

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants