question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Content preview and compressed stream

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
snaiper80commented, Nov 15, 2019

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

0reactions
minwooxcommented, Jan 21, 2020

Yes, we can completely move the logic to the decorators. 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found