middleware

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DropAcceptEncodingMiddlewareID uniquely identifies the middleware that drops the Accept-Encoding header.
	DropAcceptEncodingMiddlewareID = "DropAcceptEncodingHeader"

	// RestoreAcceptEncodingMiddlewareID uniquely identifies the middleware that restores the Accept-Encoding header.
	RestoreAcceptEncodingMiddlewareID = "RestoreAcceptEncodingHeader"

	// AcceptEncodingHeader is the HTTP header key for Accept-Encoding.
	AcceptEncodingHeader = "Accept-Encoding"

	// SigningMiddlewareID identifies the AWS request signing middleware.
	SigningMiddlewareID = "Signing"
)

Variables

This section is empty.

Functions

func DropAcceptEncoding

func DropAcceptEncoding(o *s3.Options)

DropAcceptEncoding configures the S3 client options to include middleware that modifies the request headers to be compatible with S3-like services that do not support the Accept-Encoding header. It does this by dropping the Accept-Encoding header before the request is signed, and restoring it after the request is signed. https://stackoverflow.com/a/74382598

Types

This section is empty.

Jump to

Keyboard shortcuts

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