Skip to content

HttpResponse.parseAs() accepts Void.class to ignore #110

@GoogleCodeExporter

Description

@GoogleCodeExporter
External references, such as a standards document, or specification?

http://javadoc.google-http-java-client.googlecode.com/hg/1.8.3-beta/com/google/a
pi/client/http/HttpParser.html#parse(com.google.api.client.http.HttpResponse, 
java.lang.Class)

http://javadoc.google-http-java-client.googlecode.com/hg/1.8.3-beta/com/google/a
pi/client/http/HttpResponse.html#ignore()

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

All

Please describe the feature requested.

Void.class may be a convenient way to say that you want to ignore the result.  
It would behave equivalent to calling HttpResponse.ignore().  But the nice 
thing is that then you are always following the same code path.

Original issue reported on code.google.com by yan...@google.com on 10 May 2012 at 8:01

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions