s3transport

package
v0.0.0-...-44c758a Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClient

func DefaultClient() *http.Client

DefaultClient returns an *http.Client that uses the http.RoundTripper returned by Default (suitable for general use, analogous to "net/http".DefaultClient).

Types

type T

type T struct {
	// contains filtered or unexported fields
}

T is an http.RoundTripper specialized for S3. See https://github.com/aws/aws-sdk-go/issues/3739.

func Default

func Default() *T

Default returns an http.RoundTripper with recommended settings.

func New

func New(factory func() *http.Transport) *T

New constructs *T using factory to create internal transports. Each call to factory() must return a separate http.Transport and they must not share TLSClientConfig.

func (*T) RoundTrip

func (t *T) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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