Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show ContentLength in UI #42

Open
jemerald opened this issue May 15, 2015 · 3 comments
Open

Show ContentLength in UI #42

jemerald opened this issue May 15, 2015 · 3 comments

Comments

@jemerald
Copy link
Contributor

Would be nice to show the content length of the response.

And even better, if the response is compressed (gzipped), show both raw size and text size

@stajs
Copy link
Contributor

stajs commented May 15, 2015

It does, at least, show the content length in the response headers. Agree, good to know compressed/uncompressed size.

@jemerald
Copy link
Contributor Author

When gzip is turned on in IIS, content-length header might get missing if the compressed data is bigger than the IIS buffer size.

Getting the uncompressed size is easy (response.Content.Length), but I don't seem to find the binary size...

@stajs stajs added this to the v2.0.0 milestone May 18, 2015
@stajs
Copy link
Contributor

stajs commented May 18, 2015

So the problem is chunked responses. Gzipped responses below the buffer limit will have Content-Length headers with the size set. For Transfer-Encoding: chunked responses we might be able to keep a running total of each chunk or just count the characters in the response at the end.

http://en.wikipedia.org/wiki/Chunked_transfer_encoding
http://www.codeproject.com/Articles/648526/All-about-http-chunked-responses

@stajs stajs removed this from the v2.0.0 - Collections milestone Jun 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants