PriyaranjanMohapatra / rest-client

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

New Feature: Request/Response log #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes when doing a testing / troubleshooting session, it can be very 
helpful to see multiple 
requests and their responses. It'd be *very* helpful if there was a Request Log 
window/pane/tab/drawer/whatever which allowed one to browse each request and 
response from 
the current session.

Once we have that, it'd also be great to have features to save the log, and 
clear the log.

Original issue reported on code.google.com by aviflax on 18 Feb 2008 at 7:55

GoogleCodeExporter commented 8 years ago

Original comment by subwiz on 3 Mar 2008 at 1:52

GoogleCodeExporter commented 8 years ago
Steps towards implementing this feature:

1. RequestBean -- implement toString() -- this information will be shown to the 
user
in the list of request/response.
2. The storage format needs to be defined. My preferred format is MimeMultipart
(http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeMultipar
t.html).
 Each request-response will be stored separated by a boundary marker.
3. UI implementation.

Original comment by subwiz on 24 Mar 2008 at 11:44

GoogleCodeExporter commented 8 years ago
subwiz, I think we just need to record the stream. We add a new log tab in 
request
and response, and display all the content. just like the attachment?

Original comment by libing.c...@gmail.com on 27 Mar 2008 at 12:33

Attachments:

GoogleCodeExporter commented 8 years ago
I don't think this as a tab in request and response.

This has to be a separate window--which records each and every request made. 
This
window should be accessible from Tools>Session. This window will have a JTable
listing all the request/response made till now (from the time of opening Session
window). Each entry in the JTable would be toString() representation of 
RequestBean.
Clicking on any of the entry will load the corresponding request and response in
RESTClient window. 

Finally this sequence should be savable, so that it can be opened later for
execution. I think this would be more useful as we can see a series of 
executions one
by one.

This is what I have envisioned. And the only task I was able to finish till 
date was
the toString() portion :-)

Original comment by subwiz on 27 Mar 2008 at 12:49

GoogleCodeExporter commented 8 years ago
One of the options for saving the sequence would be to use the MIME format. We 
could use:

http://james.apache.org/mime4j/

Original comment by subwiz on 2 Apr 2008 at 1:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Me moved to my first employer after series of unsatisfying jobs. Now full of 
energy,
I have started developing this feature.

Original comment by subwiz on 2 Jul 2008 at 2:16

GoogleCodeExporter commented 8 years ago
http://hc.apache.org/httpcomponents-client/logging.html

We can write a log appender which captures all the logs and displays in a 
window.

Original comment by subwiz on 20 Mar 2009 at 1:16

GoogleCodeExporter commented 8 years ago

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