sdktest

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sdktest holds AWS SDK HTTP client helpers; only test files may import it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlainBody

func PlainBody(inner aws.HTTPClient) aws.HTTPClient

PlainBody hides the request body's io.WriterTo from net/http: smithy-go's WriteTo returns io.EOF after close, which tears down live event streams (gopherstack-8wa8j).

func PlainBodyHTTPClient

func PlainBodyHTTPClient() aws.HTTPClient

PlainBodyHTTPClient returns a PlainBody client with keep-alives off, avoiding stale-conn reuse.

func Serve

func Serve(tb testing.TB, regs ...service.Registerable) string

Serve mounts regs behind the production service router on an httptest server and returns its URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL