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 ¶
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.
Click to show internal directories.
Click to hide internal directories.