compress

package
v0.0.0-...-803e70e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package compress is used to compress and decompress incoming and outgoing http requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressMiddleware

func CompressMiddleware(h http.Handler) http.Handler

CompressMiddleware - the middleware compresses outgoing requests, if compression is supported by the client, also decompresses incoming requests.

func NewGzipReader

func NewGzipReader(r io.ReadCloser) (*gzipReader, error)

NewGzipReader - Object Constructor.

func NewGzipWriter

func NewGzipWriter(w http.ResponseWriter) *gzipWriter

NewGzipWriter - Object Constructor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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