compress

package
v0.0.0-...-9eed78a Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(c *gin.Context, bs []byte) (compressed []byte, err error)

Compress response data by detecting [Accept-Encoding] then use suitable compressor to compress payload, returns compressed bytes if payload greater than 1024 bytes, or original payload with no compress.

Types

This section is empty.

Jump to

Keyboard shortcuts

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