jira-importer opened a new issue, #1457:
URL: https://github.com/apache/httpcomponents-core/issues/1457

   **[Tobias 
Oberlies](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tobias.oberlies)**
 opened 
**[HTTPCORE-459](https://issues.apache.org/jira/browse/HTTPCORE-459?redirect=false)**
 and commented
   
   We use HttpClients for a system test of a REST API. We are using 
ResponseHandlers to directly convert the response entity to a data structure 
that is suitable for assertions.
   
   This works very well, except for the occasional case where the system under 
test responds with an unexpected status code. In this case, the response 
handler throws an exception. For a good error message, it would be useful to 
also include the request URL. However the request object is not available in 
the ResponseHandler.handleResponse method.
   
   So this is a request to also make the HttpRequest object available in the 
ResponseHandler.handleResponse method. This could be done by adding a getter in 
the HttpResponse class, or by creating a new interface (e.g. 
HttpResponseHandler2) with a two-parameter handleResponse method.
   
   
   ---
   
   **Affects:** 5.0-alpha3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to