Content preview and compressed stream
See original GitHub issueWhen sending or receiving a compressed stream, RequestLog.contentPreview() will preview the compressed content, which is not very human friendly.
It would be nice if we can push the uncompressed content preview to RequestLog, with low overhead. Currently, a user can write a content previewer that performs decompression, but it means the content will be decompressed twice, once for previewing and once for actual content decoding.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Compression Streams API - MDN Web Docs
Chrome Edge
CompressionStream Full support. Chrome80. Toggle history Full support. Edg...
CompressionStream() constructor Full support. Chrome80. Toggle history Full support. Edg...
"deflate" compression Full support. Chrome80....
Read more >Compression and decompression in the browser with the ...
The Compression Streams API is for compressing and decompressing streams of data using the gzip or deflate (or deflate-raw) formats.
Read more >Viewing Different File Types Supported in Box Content Preview
Box Content Preview is limited to files sized 500 Mb or smaller. Video files are an exception; these can be as long as...
Read more >Supplemental Terms of Use for Microsoft Azure Previews
Read supplemental terms of use for Microsoft Azure Previews, including Bing URL Preview API, Visual Search API, service data use, and GDPR compliance....
Read more >If you can't compress a file or folder on Mac - Apple Support
If you can't compress your files and folders, check the permissions settings ... an administrator name and password (or use Touch ID or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I also need this exactly. Currently, I implemented a simple content previewer that is naive approach using
ContentPreviewerFactoryto decompress the gzipped body stream. But this codes have been running in debug mode only due to performance problem as you’re already said.Yes, we can completely move the logic to the decorators. 😉