You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add ExampleGzip and improve compress documentation
- Added ExampleGzip to demonstrate Gzip middleware usage.
- Updated README for compress middleware with detailed explanations.
- Structured documentation with three ways to use compress:
- quick.Handler (default)
- quick.HandlerFunc
- net/http standard implementation
- Included a direct link to the compress documentation.
Copy file name to clipboardexpand all lines: README.md
+106
Original file line number
Diff line number
Diff line change
@@ -2630,6 +2630,112 @@ $ go run main.go
2630
2630
```bash
2631
2631
$ k6 run benchmark.js
2632
2632
```
2633
+
---
2634
+
## 📦 Compression Middleware (compress)
2635
+
The compress middleware in Quick enables automatic GZIP compression for HTTP responses, reducing the size of data transferred over the network. This improves performance and bandwidth efficiency, especially for text-based content like JSON, HTML, and CSS.
0 commit comments