artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

HttpSuccessfulResponseHandler #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-http-java-client.googlecode.com/hg/1.12.0-beta/com/google/
api/client/http/HttpUnsuccessfulResponseHandler.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Very similar to HttpUnsuccessfulResponseHandler, HttpSuccessfulResponseHandler 
would be called on a successful 2xx response at the end of 
HttpRequest.execute().  It would have a similar policy as 
HttpUnsuccessfulResponseHandler in terms not being allowed to read the 
HttpResponse.getContent() because it can only be read once.

This may be useful for cases where you only need access to the response code 
and headers, or if you just need a common intercepter that gets called at the 
end of all executed methods.

Original issue reported on code.google.com by yan...@google.com on 15 Nov 2012 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 15 Nov 2012 at 5:09