achrefB3 / google-api-java-client

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

Support for specify HTTP headers on a request #215

Closed GoogleCodeExporter closed 9 years ago

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

http://en.wikipedia.org/wiki/HTTP_ETag
http://tools.ietf.org/html/rfc2616#section-14.24
http://tools.ietf.org/html/rfc2616#section-14.26

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

All.

Please describe the feature requested.

Need to be able to specify certain HTTP headers on a request like "If-Match" or 
"If-None-Match" for supporting HTTP ETags.  The simplest solution might be to 
add a GoogleHeaders field to RemoteRequest.  We can also consider other options.

Original issue reported on code.google.com by yan...@google.com on 20 May 2011 at 12:54

GoogleCodeExporter commented 9 years ago
Similarly, it might be useful to have a GoogleHeaders responseHeaders field in 
the request object that stores the headers from the most recent request.  
Currently we dump those headers in the Feed data class, but seems inelegant 
because it mixed HTTP metaphors into what would otherwise be a purely JSON data 
class.

Alternatively, we could add ETag as a parameter like any other path or query 
parameters, except that its value would actually be sent as an HTTP header.

Original comment by yan...@google.com on 19 Jan 2012 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 27 Mar 2012 at 2:10

GoogleCodeExporter commented 9 years ago
http://codereview.appspot.com/5985055/
http://codereview.appspot.com/5990049/

Original comment by rmis...@google.com on 6 Apr 2012 at 5:15

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 16 Apr 2012 at 4:47