radman38654 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

View response size #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would like a feature to simply display the byte size of the response in the 
status bar or similar, primarily the body content length, but perhaps also 
headers/combined size.

Original issue reported on code.google.com by a...@ade.se on 24 Oct 2012 at 12:33

GoogleCodeExporter commented 8 years ago
If the API supports this type of stats, it should be easy for me. Let me check 
and will update.

Original comment by subwiz on 24 Oct 2012 at 12:53

GoogleCodeExporter commented 8 years ago
Unfortunately, API (Apache Http Client) does not support this feature.

Original comment by subwiz on 5 Nov 2012 at 3:41

GoogleCodeExporter commented 8 years ago
Perhaps you understood me wrong... all you need to do is check your own 
Response bean class, 

org.wiztools.restclient.bean.Response.getResponseBody().length 

to get the number that I am looking for.

Original comment by a...@ade.se on 9 Nov 2012 at 11:25

GoogleCodeExporter commented 8 years ago
Thanks for the hint. Any ideas for header length?

Original comment by subwiz on 9 Nov 2012 at 12:47

GoogleCodeExporter commented 8 years ago
Hi Commiters,

the commited issue wasn’t present for one year and we want to reopen this new 
feature interest. We are two master students in computer science at the Free 
University of Berlin and have to collaborate in an open source project for one 
course. 
Why this project? Because we worked with the rest-client a few times during the 
Bachelor studies (so we are familiar with your application) and thought about 
it when we get this exercise.

We looked up the code for the requested Feature to display the bytesize of the 
body-request and thought to add this additional information in the status bar. 
Thats just the idea like the reporting member asked for it. 

For further procedure to implement this feature we would appreciate it if 
somebody of you can contact us. We are looking forward for a great time in this 
community.

best regards

Willrich, Kaminski

Original comment by larswill...@gmail.com on 11 Nov 2013 at 10:21

GoogleCodeExporter commented 8 years ago
Interesting! Please clone the project and implement the feature. Send the clone 
details, and I could pull it into the master branch.

Original comment by subwiz on 15 Nov 2013 at 9:40

GoogleCodeExporter commented 8 years ago
Thanks to Lars Willrich and Peter Kaminski who donated the code for this. 
Attached is the code sent by them in a separate mail.

Original comment by subwiz on 7 Dec 2013 at 3:10

Attachments: