shelf_gzip 4.1.0 shelf_gzip: ^4.1.0 copied to clipboard
Shelf middleware to GZIP encoding responses, with compression level and compression scope by content-type.
4.1.0 #
-
createGzipMiddleware
andgzipEncodeResponse
:- Added parameters
addServerTiming
andserverTimingEntryName
.
- Added parameters
-
lints: ^1.0.1
4.0.1 #
X-Compression-Ratio
: truncate ratio precision> 4
.- Update
.gitignore
4.0.0 #
- Null Safety compliant.
- Added:
createGzipMiddleware
: can create aMiddleware
with a customcompressionLevel
.acceptsGzipEncoding
: checks if aRequest
acceptsgzip
encoding.gzipEncodeResponse
: converts aResponse
to agzip
encoding response.isAlreadyCompressedContentType
andisAlreadyCompressedExtension
: checks if is already compressed.
- Optimized bytes reading and compression.
- Added an example.
- Improved API documentation.
- lints: ^1.0.0
- Using
lints/recommended.yaml
- Using
- test: ^1.16.0
- Added basic tests.
- CI: Added GitHub action.
1.0.0 #
- Initial version