http.response.compression

command
v0.0.0-...-83be562 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 7 Imported by: 0

README

HTTP response compression

The server has two paths, /uncompressed and /compressed.

The response of /uncompressed is data, and that of /compressed is <wrapped by middleware>data<wrapped by middleware>% where the <wrapped by middleware> pattern is added intentionally to verify that the compressionMiddleware middleware does do the work.

Run:

go run main.go

Expected output:

data
<wrapped by middleware>data<wrapped by middleware>%

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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