googleapis / googleapis/google-api-java-client-services

Feature Request for Range support in Drive client.

Đang mở
#7,817 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p4 type: feature request
Ngôn ngữ chính
Java
Star
725
Fork
394
Merge trung bình
42 phút
Pull request đã merge (30 ngày)
257

Mô tả

Hello,
I am currently using the Drive client and I am trying to do a partial file download stored on a Google Drive account. After spending a few hours I found this as the solution to add the [range](https://stackoverflow.com/questions/36003114/how-to-partial-download-google-drive-files-using-java-rest-client-api) to the HTTP header manually.

I was wondering if the Drive client could support adding the range header to the request itself. The reason is manually touching the HTTP request before sending it increases the likeliness of introducing a bug and generally forces me(the user of the client) to go deeper than I would like too. In general I would say that it is in within the scope of the client to support the adjustment of the HTTP headers being sent to the back-end.

As an example consider the S3Client that Amazon is currently exposing `this.s3Client.getObject(this.getSkeleton.withRange(part.getStart(), part.getEnd()));`. From here I would then actually execute the request and get a stream to that range of the file.

I am not sure if this is entirely out of scope or not so please let me know if this makes sense.
Thank you.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.