acceptencoding

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAcceptEncodingGzip

func AddAcceptEncodingGzip(stack *middleware.Stack, options AddAcceptEncodingGzipOptions) error

AddAcceptEncodingGzip explicitly adds handling for accept-encoding GZIP middleware to the operation stack. This allows checksums to be correctly computed without disabling GZIP support.

Types

type AddAcceptEncodingGzipOptions

type AddAcceptEncodingGzipOptions struct {
	Enable bool
}

AddAcceptEncodingGzipOptions provides the options for the AddAcceptEncodingGzip middleware setup.

type DecompressGzip

type DecompressGzip struct{}

DecompressGzip provides the middleware for decompressing a gzip response from the service.

func (*DecompressGzip) HandleDeserialize

HandleDeserialize implements the DeserializeMiddlware interface.

func (*DecompressGzip) ID

func (*DecompressGzip) ID() string

ID returns the id for the middleware.

type DisableGzip

type DisableGzip struct{}

DisableGzip provides the middleware that will disable the underlying http client automatically enabling for gzip decompress content-encoding support.

func (*DisableGzip) HandleFinalize

func (*DisableGzip) HandleFinalize(
	ctx context.Context, input middleware.FinalizeInput, next middleware.FinalizeHandler,
) (
	output middleware.FinalizeOutput, metadata middleware.Metadata, err error,
)

HandleFinalize implements the FinalizeMiddleware interface.

func (*DisableGzip) ID

func (*DisableGzip) ID() string

ID returns the id for the middleware.

type EnableGzip

type EnableGzip struct{}

EnableGzip provides a middleware to enable support for gzip responses, with manual decompression. This prevents the underlying HTTP client from performing the gzip decompression automatically.

func (*EnableGzip) HandleFinalize

func (*EnableGzip) HandleFinalize(
	ctx context.Context, input middleware.FinalizeInput, next middleware.FinalizeHandler,
) (
	output middleware.FinalizeOutput, metadata middleware.Metadata, err error,
)

HandleFinalize implements the FinalizeMiddleware interface.

func (*EnableGzip) ID

func (*EnableGzip) ID() string

ID returns the id for the middleware.

Jump to

Keyboard shortcuts

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