anandsekar272 / google-api-java-client

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

MediaHttpUploader: direct upload should set the request headers #641

Closed GoogleCodeExporter closed 9 years ago

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

http://javadoc.google-api-java-client.googlecode.com/hg/1.11.0-beta/com/google/a
pi/client/googleapis/media/MediaHttpUploader.html

http://javadoc.google-api-java-client.googlecode.com/hg/1.11.0-beta/com/google/a
pi/client/googleapis/media/MediaHttpUploader.html#setDirectUploadEnabled(boolean
)

http://javadoc.google-api-java-client.googlecode.com/hg/1.11.0-beta/com/google/a
pi/client/googleapis/media/MediaHttpUploader.html#setInitiationHeaders(com.googl
e.api.client.googleapis.GoogleHeaders)

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

All

Please describe the feature requested.

When doing resumable media upload, I can call setInitiationHeaders to provide 
arbitrary headers to add to the metadata request.  This enables the ability for 
example to add subscriptions headers.

However, there is no way to supply additional headers when 
setDirectUploadEnabled(true), so there is no way for example to subscribe while 
doing direct media upload.

This feature request is to use the same initiation headers when 
setDirectUploadEnabled(true).  Alternatively, provide some other way to set 
those headers.

Original issue reported on code.google.com by yan...@google.com on 23 Oct 2012 at 6:49

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/6852066/

Original comment by rmis...@google.com on 5 Dec 2012 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 10 Dec 2012 at 2:19